X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep108.php;h=a85073a2388d5653a895a73ffd07434566186415;hb=ea1ac6e8c569745bd4099d47936f6dfe86b8b9d4;hp=156b5499455f322e1be81b4535144837931676d4;hpb=ddadb47f2620ce6902ad4694ce6512568862ba05;p=fa-stable.git diff --git a/reporting/rep108.php b/reporting/rep108.php index 156b5499..a85073a2 100644 --- a/reporting/rep108.php +++ b/reporting/rep108.php @@ -54,9 +54,8 @@ function print_statements() $customer = $_POST['PARAM_0']; $currency = $_POST['PARAM_1']; - $bankaccount = $_POST['PARAM_2']; - $email = $_POST['PARAM_3']; - $comments = $_POST['PARAM_4']; + $email = $_POST['PARAM_2']; + $comments = $_POST['PARAM_3']; $dec = user_price_dec(); @@ -66,10 +65,7 @@ function print_statements() $aligns = array('left', 'left', 'left', 'left', 'right', 'right', 'right', 'right'); - $params = array('comments' => $comments, - 'bankaccount' => $bankaccount); - - $baccount = get_bank_account($params['bankaccount']); + $params = array('comments' => $comments); $cur = get_company_pref('curr_default'); $PastDueDays1 = get_company_pref('past_due_days'); @@ -97,6 +93,8 @@ function print_statements() $myrow['order_'] = ""; $TransResult = getTransactions($myrow['debtor_no'], $date); + $baccount = get_default_bank_account($myrow['curr_code']); + $params['bankaccount'] = $baccount['id']; if (db_num_rows($TransResult) == 0) continue; if ($email == 1)