Question
As shown is an administrative page to generate daily sales reports. Clicking on any button directs to daily sales reports showing the total dollar sales
As shown is an administrative page to generate daily sales reports. Clicking on any button directs to daily sales reports showing the total dollar sales by products and sales quantities by product categories(single and double shots) generated on seperate pages. Database from phpmyadmin.
Report the product category which achieved the highest dollar sales in the latter report
Code:
JavaJam Coffee House
- Just Java
- Regular house blend, decaffeinated coffee, or flavor of the day.
- Endless cup $2.00
- Cafe au Lait
- House blended coffee infused into a smooth, steamed milk.
- Ice Cappuccino
- Sweet espresso blended with icy-cold milk and served in a chilled glass.
Sitemap
- Home
- About
- Clients
- Contact Us
JavaScript:
// JavaScript source code
function calculateTotal() { $("#totalPrice").val(parseFloat($("#jstJavaSubTotal").val() || 0) + parseFloat($("#cafeSubTotal").val() || 0) + parseFloat($("#iceSubTotal").val() || 0)); }
$(document).ready(function () { $("#jstJavaQty").blur(function () { var cost = ($("#justJava").attr("value") || 0) * this.value; $("#jstJavaSubTotal").val(cost); calculateTotal(); });
$("#cafeQty").blur(function () { var cost = ($("#iCafeRadio").attr("value") || 0) * this.value; $("#cafeSubTotal").val(cost); calculateTotal(); });
$("#iceQty").blur(function () { var cost = ($("#iIceCappuccino").attr("value") || 0) * this.value; $("#iceSubTotal").val(cost); calculateTotal(); });
$("input[name='cafeRadio']").change(function () { $("#iCafeRadio").attr("value", this.value); });
$("input[name='iceCappuccino']").change(function () { $("#iIceCappuccino").attr("value", this.value); }); });
JTvudIn CoFfee House Daily Sales Click to generate daily sales report: Report [ Total dollar sales by products Sales quantities by product categoriesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started