X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_payments.php;h=b4551702a4c0ec8e347582e59a27513c73e6c166;hb=1572a0afcb671ad77631ce956547c31f96773fe4;hp=b67df99c774a1b3c06c22e2dd64faab2879c7ed9;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git diff --git a/sales/customer_payments.php b/sales/customer_payments.php index b67df99c..b4551702 100644 --- a/sales/customer_payments.php +++ b/sales/customer_payments.php @@ -184,7 +184,6 @@ if (isset($_POST['_DateBanked_changed'])) { $Ajax->activate('_ex_rate'); } if (list_updated('customer_id') || list_updated('bank_account')) { - $_SESSION['alloc']->read(); $Ajax->activate('alloc_tbl'); } //---------------------------------------------------------------------------------------------- @@ -251,7 +250,8 @@ start_form(); $display_discount_percent = percent_format($_POST['pymt_discount']*100) . "%"; table_section(2); - + if (!list_updated('bank_account')) + $_POST['bank_account'] = get_default_customer_bank_account($_POST['customer_id']); bank_accounts_list_row(_("Into Bank Account:"), 'bank_account', null, true); @@ -277,6 +277,7 @@ start_form(); if ($cust_currency == $bank_currency) { div_start('alloc_tbl'); + $_SESSION['alloc']->read(); show_allocatable(false); div_end(); }