X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep109.php;h=a7dfbf13eb72224727af8aa2302105d6b08acb41;hb=5e63c6ace55729bbb5ee3b060035a25a4426eb0a;hp=718f6f9d88c89387b221467a6c3d7ae133071676;hpb=1571869d54be48452fdbe08f25130972ff0a7b5a;p=fa-stable.git diff --git a/reporting/rep109.php b/reporting/rep109.php index 718f6f9d..a7dfbf13 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, $no_zero_lines_amount; + global $path_to_root, $SysPrefs; include_once($path_to_root . "/reporting/includes/pdf_report.inc"); @@ -77,6 +75,11 @@ function print_sales_orders() $params['bankaccount'] = $baccount['id']; $branch = get_branch($myrow["branch_code"]); if ($email == 1) + $rep = new FrontReport("", "", user_pagesize(), 9, $orientation); + $rep->SetHeaderType('Header2'); + $rep->currency = $cur; + $rep->Font(); + if ($print_as_quote == 1) { $rep = new FrontReport("", "", user_pagesize(), 9, $orientation); if ($print_as_quote == 1) @@ -123,7 +126,7 @@ function print_sales_orders() $rep->TextColLines(1, 2, $myrow2['description'], -2); $newrow = $rep->row; $rep->row = $oldrow; - if ($Net != 0.0 || !is_service($myrow2['mb_flag']) || !isset($no_zero_lines_amount) || $no_zero_lines_amount == 0) + if ($Net != 0.0 || !is_service($myrow2['mb_flag']) || !$SysPrefs->no_zero_lines_amount()) { $rep->TextCol(2, 3, $DisplayQty, -2); $rep->TextCol(3, 4, $myrow2['units'], -2); @@ -174,7 +177,7 @@ function print_sales_orders() if ($myrow['tax_included']) { - if (isset($alternative_tax_include_on_docs) && $alternative_tax_include_on_docs == 1) + if ($SysPrefs->alternative_tax_include_on_docs() == 1) { if ($first) { @@ -220,4 +223,3 @@ function print_sales_orders() $rep->End(); } -?> \ No newline at end of file