X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gl%2Fgl_bank.php;h=fc6c50e67f0129a5b3a6bbd3525b095b1665e087;hb=e91772a2716825a6aeb358d1defba47d5f3892c1;hp=b9ce988214dfc566395cdd5ae53d12e6f7c15a74;hpb=850b2dc645b7e16d6b2f5a5e10cac03d8956180c;p=fa-stable.git diff --git a/gl/gl_bank.php b/gl/gl_bank.php index b9ce9882..fc6c50e6 100644 --- a/gl/gl_bank.php +++ b/gl/gl_bank.php @@ -121,7 +121,7 @@ function handle_new_order($type) $_SESSION['pay_items'] = new items_cart($type); - $_POST['date_'] = Today(); + $_POST['date_'] = new_doc_date(); if (!is_date_in_fiscalyear($_POST['date_'])) $_POST['date_'] = end_fiscalyear(); $_SESSION['pay_items']->tran_date = $_POST['date_']; @@ -180,6 +180,7 @@ if (isset($_POST['Process'])) $trans_type = $trans[0]; $trans_no = $trans[1]; + new_doc_date($_POST['date_']); $_SESSION['pay_items']->clear_items(); unset($_SESSION['pay_items']);