base_school_num changes
This commit is contained in:
1 parent
57853ca5c6
commit
ecea902d50
8 files changed
+32
-23
No files matched your search
@@ -73,12 +73,21 @@ fwrite($fp,"\n");
|
||||
|
||||
|
||||
// Set estimated totals to zero
|
||||
$query = "update supplier_order_header " .
|
||||
"set estimated_total = 0, " .
|
||||
"delivery_date = '$delivery_date' " .
|
||||
"where school_num = $school_num " .
|
||||
"and schedule_num = $schedule_num " .
|
||||
"and menu_num = $curr_menu_num";
|
||||
if (isset($delivery_date) && strlen($delivery_date) > 0) {
|
||||
$query = "update supplier_order_header " .
|
||||
"set estimated_total = 0, " .
|
||||
"delivery_date = '$delivery_date' " .
|
||||
"where school_num = $school_num " .
|
||||
"and schedule_num = $schedule_num " .
|
||||
"and menu_num = $curr_menu_num";
|
||||
}
|
||||
else {
|
||||
$query = "update supplier_order_header " .
|
||||
"set estimated_total = 0 " .
|
||||
"where school_num = $school_num " .
|
||||
"and schedule_num = $schedule_num " .
|
||||
"and menu_num = $curr_menu_num";
|
||||
}
|
||||
// db_query("START TRANSACTION");
|
||||
db_query($query);
|
||||
// db_query("COMMIT");
|
||||
|
||||
Reference in new issue
Block a user