X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Ftransfers.php;h=b311558928907704ad7dee50c156f11149b90b27;hb=1a851e527fe366364c6d2baaf2684222f9394b48;hp=897b647cc076d257ef5b876af5ef8a47e6a2177b;hpb=e8ae3516539a520338117f25d401c0fc234973a4;p=fa-stable.git diff --git a/inventory/transfers.php b/inventory/transfers.php index 897b647c..b3115589 100644 --- a/inventory/transfers.php +++ b/inventory/transfers.php @@ -68,7 +68,7 @@ function handle_new_order() session_register("transfer_items"); $_SESSION['transfer_items'] = new items_cart(systypes::location_transfer()); - $_POST['AdjDate'] = Today(); + $_POST['AdjDate'] = new_doc_date(); if (!is_date_in_fiscalyear($_POST['AdjDate'])) $_POST['AdjDate'] = end_fiscalyear(); $_SESSION['transfer_items']->tran_date = $_POST['AdjDate']; @@ -143,7 +143,7 @@ if (isset($_POST['Process'])) $trans_no = add_stock_transfer($_SESSION['transfer_items']->line_items, $_POST['FromStockLocation'], $_POST['ToStockLocation'], $_POST['AdjDate'], $_POST['type'], $_POST['ref'], $_POST['memo_']); - + new_doc_date($_POST['AdjDate']); $_SESSION['transfer_items']->clear_items(); unset($_SESSION['transfer_items']); @@ -233,7 +233,7 @@ end_row(); end_table(1); submit_center_first('Update', _("Update"), '', null); -submit_center_last('Process', _("Process Transfer"), '', true); +submit_center_last('Process', _("Process Transfer"), '', 'default'); end_form(); end_page();