X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep109.php;h=d6ed21e245b36e1e81f8bc0f5a7e5ea2e6924130;hb=927ebef2443b6dda544056e33ec84b71d2bdb6c2;hp=e0c577a51e66c068acbaa77660691fe456c63914;hpb=0c1ab57c09d87eed2bd248892dbfe3f256767a82;p=fa-stable.git diff --git a/reporting/rep109.php b/reporting/rep109.php index e0c577a5..d6ed21e2 100644 --- a/reporting/rep109.php +++ b/reporting/rep109.php @@ -29,11 +29,9 @@ include_once($path_to_root . "/taxes/tax_calc.inc"); print_sales_orders(); -$print_as_quote = 0; - function print_sales_orders() { - global $path_to_root, $print_as_quote, $SysPrefs; + global $path_to_root, $SysPrefs; include_once($path_to_root . "/reporting/includes/pdf_report.inc"); @@ -97,13 +95,13 @@ function print_sales_orders() } else $rep->title = ($print_as_quote==1 ? _("QUOTE") : _("SALES ORDER")); - $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_SALESORDER, $contacts); + $rep->SetHeaderType('Header2'); $rep->NewPage(); $result = get_sales_order_details($i, ST_SALESORDER); @@ -225,4 +223,3 @@ function print_sales_orders() $rep->End(); } -?> \ No newline at end of file