end_page();
exit;
-} elseif (!check_quantities()) {
- display_error(_("Selected quantity cannot be less than quantity invoiced nor more than quantity
- not dispatched on sales order."));
+} else {
+ check_edit_conflicts();
-} elseif(!check_num('ChargeFreightCost', 0))
- display_error(_("Freight cost cannot be less than zero"));
- set_focus('ChargeFreightCost');
+ if (!check_quantities()) {
+ display_error(_("Selected quantity cannot be less than quantity invoiced nor more than quantity
+ not dispatched on sales order."));
+ } elseif(!check_num('ChargeFreightCost', 0))
+ display_error(_("Freight cost cannot be less than zero"));
+ set_focus('ChargeFreightCost');
+}
//-----------------------------------------------------------------------------
$_POST['due_date'] = $cart->due_date;
$_POST['Location'] = $cart->Location;
$_POST['Comments'] = $cart->Comments;
+ $_POST['cart_id'] = $cart->cart_id;
}
//------------------------------------------------------------------------------
}
//------------------------------------------------------------------------------
start_form(false, true);
+hidden('cart_id');
start_table("$table_style2 width=80%", 5);
echo "<tr><td>"; // outer table
table_header($th);
$k = 0;
$has_marked = false;
-$show_qoh = true;
foreach ($_SESSION['Items']->line_items as $line=>$ln_itm) {
if ($ln_itm->quantity==$ln_itm->qty_done) {
continue; //this line is fully delivered
}
// if it's a non-stock item (eg. service) don't show qoh
+ $show_qoh = true;
if (sys_prefs::allow_negative_stock() || !has_stock_holding($ln_itm->mb_flag) ||
$ln_itm->qty_dispatched == 0) {
$show_qoh = false;