From: Joe Hunt Date: Sun, 24 Mar 2019 17:07:25 +0000 (+0100) Subject: Rerun of sales_order_entry.php. X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=2bb32c39a0dc02afea9a67053d03d4b148114d5d Rerun of sales_order_entry.php. --- diff --git a/sales/sales_order_entry.php b/sales/sales_order_entry.php index 9d87d935..dad3c63c 100644 --- a/sales/sales_order_entry.php +++ b/sales/sales_order_entry.php @@ -454,7 +454,8 @@ function can_process() { return false; } - if ($_SESSION['Items']->payment_terms['cash_sale']) + if ($_SESSION['Items']->payment_terms['cash_sale'] && + ($_SESSION['Items']->trans_type == ST_CUSTDELIVERY || $_SESSION['Items']->trans_type == ST_SALESINVOICE)) $_SESSION['Items']->due_date = $_SESSION['Items']->document_date; return true; }