X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep112.php;h=cb8ca5fec8c7736693cd518518804fb31c2c6c85;hb=2fe1807ed1443d6e8fd850fb08cd58346c8657e5;hp=acfe7394e8d4040dca6642672721681047a05796;hpb=aeef2bf17512535dcdc1b37dc41bee9d7e517da5;p=fa-stable.git diff --git a/reporting/rep112.php b/reporting/rep112.php index acfe7394..cb8ca5fe 100644 --- a/reporting/rep112.php +++ b/reporting/rep112.php @@ -70,9 +70,11 @@ function print_receipts() $to = $_POST['PARAM_1']; $currency = $_POST['PARAM_2']; $comments = $_POST['PARAM_3']; + $orientation = $_POST['PARAM_4']; if (!$from || !$to) return; + $orientation = ($orientation ? 'L' : 'P'); $dec = user_price_dec(); $fno = explode("-", $from); @@ -89,8 +91,10 @@ function print_receipts() $cur = get_company_Pref('curr_default'); - $rep = new FrontReport(_('RECEIPT'), "ReceiptBulk", user_pagesize()); - $rep->SetHeaderType('Header2'); + $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); @@ -106,10 +110,10 @@ function print_receipts() $myrow = get_receipt($j, $i); if (!$myrow) continue; - $baccount = get_default_bank_account($myrow['curr_code']); - $params['bankaccount'] = $baccount['id']; + $res = get_bank_trans($j, $i); + $baccount = db_fetch($res); + $params['bankaccount'] = $baccount['bank_act']; - $rep->title = _('RECEIPT'); $contacts = get_branch_contacts($myrow['branch_code'], 'invoice', $myrow['debtor_no']); $rep->SetCommonData($myrow, null, $myrow, $baccount, ST_CUSTPAYMENT, $contacts); $rep->NewPage(); @@ -137,6 +141,13 @@ function print_receipts() $rep->NewPage(); } + $memo = get_comments_string($j, $i); + if ($memo != "") + { + $rep->NewLine(); + $rep->TextColLines(1, 5, $memo, -2); + } + $rep->row = $rep->bottomMargin + (15 * $rep->lineHeight); $rep->TextCol(3, 6, _("Total Allocated"), -2);