X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep111.php;h=45c5ab999e4be66466387c6dc2a6c6786ade4d60;hb=33dfc21a26f08e9ac19048bbcf80cce2351a6cfe;hp=95ce5318b9cdfd3545bc3b3b1ae5774e7ea47e14;hpb=5e63c6ace55729bbb5ee3b060035a25a4426eb0a;p=fa-stable.git diff --git a/reporting/rep111.php b/reporting/rep111.php index 95ce5318..45c5ab99 100644 --- a/reporting/rep111.php +++ b/reporting/rep111.php @@ -68,6 +68,9 @@ function print_sales_quotations() for ($i = $from; $i <= $to; $i++) { $myrow = get_sales_order_header($i, ST_SALESQUOTE); + if ($currency != ALL_TEXT && $myrow['curr_code'] != $currency) { + continue; + } $baccount = get_default_bank_account($myrow['curr_code']); $params['bankaccount'] = $baccount['id']; $branch = get_branch($myrow["branch_code"]); @@ -79,14 +82,13 @@ function print_sales_quotations() else $rep->filename = "SalesQuotation" . $myrow['reference'] . ".pdf"; } - $rep->SetHeaderType('Header2'); $rep->currency = $cur; $rep->Font(); $rep->Info($params, $cols, null, $aligns); $contacts = get_branch_contacts($branch['branch_code'], 'order', $branch['debtor_no'], true); $rep->SetCommonData($myrow, $branch, $myrow, $baccount, ST_SALESQUOTE, $contacts); - //$rep->headerFunc = 'Header2'; + $rep->SetHeaderType('Header2'); $rep->NewPage(); $result = get_sales_order_details($i, ST_SALESQUOTE);