hyperlink_params("$path_to_root/sales/inquiry/sales_orders_view.php", _("Select Another Order For Dispatch"), "OutstandingOnly=1");
+ hyperlink_params("$path_to_root/admin/attachments.php", _("Add an Attachment"), "filterType=".ST_CUSTDELIVERY."&trans_no=$dispatch_no");
+
display_footer_exit();
} elseif (isset($_GET['UpdatedID'])) {
$min = $itm->qty_done;
$max = $itm->quantity;
} else {
- global $path_to_root;
$min = 0;
// Fixing floating point problem in PHP.
- include_once($path_to_root . "/inventory/includes/db/items_units_db.inc");
- $max = round2($itm->quantity - $itm->qty_done, get_unit_dec($itm->stock_id));
+ $max = round2($itm->quantity - $itm->qty_done, get_qty_dec($itm->stock_id));
}
if (check_num('Line'.$line, $min, $max)) {
set_focus('Line'.$line);
$ok = 0;
}
-
}
if (isset($_POST['Line'.$line.'Desc'])) {