X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep109.php;h=d6ed21e245b36e1e81f8bc0f5a7e5ea2e6924130;hb=927ebef2443b6dda544056e33ec84b71d2bdb6c2;hp=d01c9bdae0e865ff9a6e948b4e840859eb9590be;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/reporting/rep109.php b/reporting/rep109.php index d01c9bda..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);