X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep112.php;h=6cb3148fa292df4ba18e43afb0dcf8b7ca5c639a;hb=33dfc21a26f08e9ac19048bbcf80cce2351a6cfe;hp=10e2130bfd9e542ab93a0b76ca4ad84bfe63e7cc;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/reporting/rep112.php b/reporting/rep112.php index 10e2130b..6cb3148f 100644 --- a/reporting/rep112.php +++ b/reporting/rep112.php @@ -83,7 +83,6 @@ function print_receipts() $rep = new FrontReport(_('RECEIPT'), "ReceiptBulk", user_pagesize(), 9, $orientation); if ($orientation == 'L') recalculate_cols($cols); - $rep->SetHeaderType('Header2'); $rep->currency = $cur; $rep->Font(); $rep->Info($params, $cols, null, $aligns); @@ -99,12 +98,16 @@ function print_receipts() $myrow = get_receipt($j, $i); if (!$myrow) continue; + if ($currency != ALL_TEXT && $myrow['curr_code'] != $currency) { + continue; + } $res = get_bank_trans($j, $i); $baccount = db_fetch($res); $params['bankaccount'] = $baccount['bank_act']; $contacts = get_branch_contacts($myrow['branch_code'], 'invoice', $myrow['debtor_no']); $rep->SetCommonData($myrow, null, $myrow, $baccount, ST_CUSTPAYMENT, $contacts); + $rep->SetHeaderType('Header2'); $rep->NewPage(); $result = get_allocatable_to_cust_transactions($myrow['debtor_no'], $myrow['trans_no'], $myrow['type']);