Cleanup setting of customers/suppliers bank account in forms
[fa-stable.git] / purchasing / supplier_payment.php
index 26c2a7485635463d97bbe341c0e9fa367c86f39f..477c30b41a7a83c526ec0c36d83589f54860d986 100644 (file)
@@ -58,7 +58,6 @@ if (isset($_POST['_DatePaid_changed'])) {
 }
 
 if (list_updated('supplier_id') || list_updated('bank_account')) {
-  $_SESSION['alloc']->read();
   $Ajax->activate('alloc_tbl');
 }
 //----------------------------------------------------------------------------------------
@@ -302,9 +301,10 @@ start_form();
        end_outer_table(1); // outer table
 
        if ($bank_currency == $supplier_currency) {
-       div_start('alloc_tbl');
+               div_start('alloc_tbl');
+               $_SESSION['alloc']->read();
                show_allocatable(false);
-       div_end();
+               div_end();
        }
 
        start_table(TABLESTYLE, "width=60%");