First Commit

This commit is contained in:
mark committed 2026-10-19 15:22:52 -07:00
1 parent 5eb9dd037d
commit 2e62c0e60b
11877 files changed
+2035312

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
<?php
include "db.php";
$onum = 134075;
$query = "select sum(hloi.qty * hlmp.supplier_product_qty * (sp.package_cost / sp.package_qty)) as cost " .
"from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp, supplier_products as sp " .
"where hloi.school_num = hlmp.school_num " .
"and hloi.school_num = sp.school_num " .
"and hloi.order_num = $onum " .
"and hloi.menu_item_num = hlmp.menu_item_num " .
"and hlmp.supplier_product_num = sp.record_num";
$cost = db_getVal($query);
printf("%12.2f\n",$cost);
?>