X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep111.php;h=45c5ab999e4be66466387c6dc2a6c6786ade4d60;hb=3974cfebf97c03e07b0beb608ae63b84b1e0f908;hp=4f3588b0be16f19dbc953ccdb9f5b1d180ae77d4;hpb=0518849c28cc497af72168ec4c6713c1a191c0be;p=fa-stable.git diff --git a/reporting/rep111.php b/reporting/rep111.php index 4f3588b0..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"]); @@ -84,8 +87,8 @@ function print_sales_quotations() $rep->Info($params, $cols, null, $aligns); $contacts = get_branch_contacts($branch['branch_code'], 'order', $branch['debtor_no'], true); - $rep->SetHeaderType('Header2'); $rep->SetCommonData($myrow, $branch, $myrow, $baccount, ST_SALESQUOTE, $contacts); + $rep->SetHeaderType('Header2'); $rep->NewPage(); $result = get_sales_order_details($i, ST_SALESQUOTE);