$Ajax->activate('_ex_rate');
}
-if (list_updated('supplier_id') || list_updated('bank_account')) {
- $_SESSION['alloc']->read();
- $_POST['memo_'] = $_POST['amount'] = '';
- $Ajax->activate('alloc_tbl');
-}
//----------------------------------------------------------------------------------------
if (!isset($_POST['bank_account'])) { // first page call
supplier_list_row(_("Payment To:"), 'supplier_id', null, false, true);
+ if (list_updated('supplier_id') || list_updated('bank_account')) {
+ $_SESSION['alloc']->read();
+ $_POST['memo_'] = $_POST['amount'] = '';
+ $Ajax->activate('alloc_tbl');
+ }
+
set_global_supplier($_POST['supplier_id']);
if (!list_updated('bank_account'))
}
$new = $_SESSION['alloc']->trans_no == 0;
-if (list_updated('customer_id') || ($new && list_updated('bank_account'))) {
- $_SESSION['alloc']->read();
- $_POST['memo_'] = $_POST['amount'] = $_POST['discount'] = '';
- $Ajax->activate('alloc_tbl');
-}
//----------------------------------------------------------------------------------------------
if (isset($_POST['AddPaymentItem'])) {
hidden('customer_id', $_POST['customer_id']);
}
+ if (list_updated('customer_id') || ($new && list_updated('bank_account'))) {
+ $_SESSION['alloc']->read();
+ $_POST['memo_'] = $_POST['amount'] = $_POST['discount'] = '';
+ $Ajax->activate('alloc_tbl');
+ }
+
if (!isset($_POST['charge'])) // first page call
{
//Prepare allocation cart