X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_payment.php;h=6ec57b01d0968e44e2e18d2a85249e2cc7c54d5f;hb=a1a4460e51a0a792f10df5d41eb43abc1f94ff4a;hp=d92973570efb4a39f2b44095f321d2f2c930af36;hpb=431531eebf3ba494002cfbf7ea36f9e82d4975c0;p=fa-stable.git diff --git a/purchasing/supplier_payment.php b/purchasing/supplier_payment.php index d9297357..6ec57b01 100644 --- a/purchasing/supplier_payment.php +++ b/purchasing/supplier_payment.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $path_to_root=".."; $page_security = 5; include_once($path_to_root . "/includes/session.inc"); @@ -29,8 +38,19 @@ check_db_has_suppliers(_("There are no suppliers defined in the system.")); check_db_has_bank_accounts(_("There are no bank accounts defined in the system.")); -check_db_has_bank_trans_types(_("There are no bank payment types defined in the system.")); - +//---------------------------------------------------------------------------------------- +if ($ret = context_restore()) { + if(isset($ret['supplier_id'])) + $_POST['supplier_id'] = $ret['supplier_id']; +} +if (isset($_POST['_supplier_id_editor'])) { + context_call($path_to_root.'/purchasing/manage/suppliers.php?supplier_id='.$_POST['supplier_id'], + array( 'supplier_id', 'bank_account', 'DatePaid', 'ref', 'amount', + 'discount', 'memo_') ); +} +if (isset($_POST['_DatePaid_changed'])) { + $Ajax->activate('_ex_rate'); +} //---------------------------------------------------------------------------------------- if (isset($_GET['AddedID'])) @@ -39,18 +59,13 @@ if (isset($_GET['AddedID'])) display_notification_centered( _("Payment has been sucessfully entered")); - display_note(get_gl_view_str(22, $payment_id, _("View the GL Journal Entries for this Payment"))); + display_note(get_gl_view_str(22, $payment_id, _("View the GL &Journal Entries for this Payment"))); - echo "
"; // outer table
+ start_outer_table($table_style2, 5);
+ //echo " | "; // outer table
- echo " | "; // outer table
+ //echo " |