X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=blobdiff_plain;f=sales%2Fsales_order_entry.php;h=9d87d93558b59985ccdb8ab20c5b3a136f7a9036;hp=07f51d3bacaeb4890c7da93eea8b70ec9f5437e5;hb=b8ca787d4997e98d29af963f9e23534796381c44;hpb=2aea99756a8c19766f0f9dfee56b27f7c1994f37 diff --git a/sales/sales_order_entry.php b/sales/sales_order_entry.php index 07f51d3b..9d87d935 100644 --- a/sales/sales_order_entry.php +++ b/sales/sales_order_entry.php @@ -453,6 +453,9 @@ function can_process() { display_error("Invoice total amount cannot be less than zero."); return false; } + + if ($_SESSION['Items']->payment_terms['cash_sale']) + $_SESSION['Items']->due_date = $_SESSION['Items']->document_date; return true; }