X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=sales%2Fcustomer_delivery.php;h=c160d6d8725979197778f45b0590ab29f7dba620;hb=cf523b36717768b5c061accc95f3ba9083b88165;hp=c634a94e75109bf06a1fee1d597c014e29cb1db0;hpb=b57cb5b1684ef37a62a70466a789d2594a7292d5;p=fa-stable.git diff --git a/sales/customer_delivery.php b/sales/customer_delivery.php index c634a94e..c160d6d8 100644 --- a/sales/customer_delivery.php +++ b/sales/customer_delivery.php @@ -62,6 +62,8 @@ if (isset($_GET['AddedID'])) { 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'])) { @@ -254,7 +256,7 @@ function check_quantities() } else { $min = 0; // Fixing floating point problem in PHP. - $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)) { @@ -264,7 +266,6 @@ function check_quantities() set_focus('Line'.$line); $ok = 0; } - } if (isset($_POST['Line'.$line.'Desc'])) {