Pressing the link -Entry customer payment for this invoice- now shows correct branch...
[fa-stable.git] / sales / customer_payments.php
index 7b3b117f90fc4a76e4edf20234faad62ca4ffd90..1f49461c400f3d13f488295e31789b49061eb769 100644 (file)
@@ -54,6 +54,7 @@ if (!isset($_POST['bank_account'])) { // first page call
                if($inv) {
                        $_SESSION['alloc']->person_id = $_POST['customer_id'] = $inv['debtor_no'];
                        $_SESSION['alloc']->read();
+                       $_POST['BranchID'] = $inv['branch_code'];
                        $_POST['DateBanked'] = sql2date($inv['tran_date']);
                        foreach($_SESSION['alloc']->allocs as $line => $trans) {
                                if ($trans->type == ST_SALESINVOICE && $trans->type_no == $_GET['SInvoice']) {