X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_payment.php;h=30cd4bb6b2d8c6dbd91ec718a8c7cb77337c3ef4;hb=95856a739a5eacda8c86dc53bff8e7a0ae7b204e;hp=6ec57b01d0968e44e2e18d2a85249e2cc7c54d5f;hpb=4657251eed9910c5669c859a54051dc54143aa54;p=fa-stable.git diff --git a/purchasing/supplier_payment.php b/purchasing/supplier_payment.php index 6ec57b01..30cd4bb6 100644 --- a/purchasing/supplier_payment.php +++ b/purchasing/supplier_payment.php @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ $path_to_root=".."; $page_security = 5; @@ -73,13 +73,13 @@ if (isset($_GET['AddedID'])) function display_controls() { global $table_style2; - start_form(false, true); + start_form(); if (!isset($_POST['supplier_id'])) $_POST['supplier_id'] = get_global_supplier(false); if (!isset($_POST['DatePaid'])) { - $_POST['DatePaid'] = Today(); + $_POST['DatePaid'] = new_doc_date(); if (!is_date_in_fiscalyear($_POST['DatePaid'])) $_POST['DatePaid'] = end_fiscalyear(); } @@ -95,7 +95,7 @@ function display_controls() amount_row(_("Amount of Payment:"), 'amount'); amount_row(_("Amount of Discount:"), 'discount'); - date_row(_("Date Paid") . ":", 'DatePaid', '', null, 0, 0, 0, null, true); + date_row(_("Date Paid") . ":", 'DatePaid', '', true, 0, 0, 0, null, true); table_section(2); //echo ""; @@ -122,7 +122,7 @@ function display_controls() //echo ""; end_outer_table(1); // outer table - submit_center('ProcessSuppPayment',_("Enter Payment"), true, '', true); + submit_center('ProcessSuppPayment',_("Enter Payment"), true, '', 'default'); if ($bank_currency != $supplier_currency) { @@ -218,7 +218,7 @@ function handle_add_payment() $payment_id = add_supp_payment($_POST['supplier_id'], $_POST['DatePaid'], $_POST['bank_account'], input_num('amount'), input_num('discount'), $_POST['ref'], $_POST['memo_'], $rate); - + new_doc_date($_POST['DatePaid']); //unset($_POST['supplier_id']); unset($_POST['bank_account']); unset($_POST['DatePaid']);