X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_payments.php;h=78561a9104b91531ea7b07e52261f452b0ef66fc;hb=51b2901d4531d4b4ffe3d7ffc58c0c906e6a57e1;hp=7612a2b4b68cf66bb30bc3432644cdc6b431ec9b;hpb=3951d648b98dbd5fdf9e95b858b765b7d52fe8c0;p=fa-stable.git diff --git a/sales/customer_payments.php b/sales/customer_payments.php index 7612a2b4..78561a91 100644 --- a/sales/customer_payments.php +++ b/sales/customer_payments.php @@ -49,7 +49,8 @@ if (!isset($_POST['bank_account'])) { // first page call if (isset($_GET['SInvoice'])) { // get date and supplier $type = !isset($_GET['Type']) ? ST_SALESINVOICE : $_GET['Type']; - $inv = get_customer_trans($_GET['SInvoice'], $type); + $cust = !isset($_GET['customer_id']) ? null : $_GET['customer_id']; + $inv = get_customer_trans($_GET['SInvoice'], $type, $cust); $dflt_act = get_default_bank_account($inv['curr_code']); $_POST['bank_account'] = $dflt_act['id']; if ($inv) {