X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep111.php;h=c5bed8d12f51c738ef94014ad6163f50557b4b9d;hb=efc1a9ce400be6233323af9c193ab9460407bcf6;hp=0301ed616e2f8677c3765cb3f703702f0e16aca9;hpb=883307779f9ca5bac0533702a8702b0cccb4742f;p=fa-stable.git diff --git a/reporting/rep111.php b/reporting/rep111.php index 0301ed61..c5bed8d1 100644 --- a/reporting/rep111.php +++ b/reporting/rep111.php @@ -58,6 +58,7 @@ function print_sales_quotations() if ($email == 0) { $rep = new FrontReport(_("SALES QUOTATION"), "SalesQuotationBulk", user_pagesize()); + $rep->SetHeaderType('Header2'); $rep->currency = $cur; $rep->Font(); $rep->Info($params, $cols, null, $aligns); @@ -72,13 +73,16 @@ function print_sales_quotations() if ($email == 1) { $rep = new FrontReport("", "", user_pagesize()); + $rep->SetHeaderType('Header2'); $rep->currency = $cur; $rep->Font(); $rep->filename = "SalesQuotation" . $i . ".pdf"; $rep->Info($params, $cols, null, $aligns); } $rep->title = _("SALES QUOTATION"); - $rep->Header2($myrow, $branch, $myrow, $baccount, ST_SALESQUOTE); + $rep->SetCommonData($myrow, $branch, $myrow, $baccount, ST_SALESQUOTE); + $rep->headerFunc = 'Header2'; + $rep->NewPage(); $result = get_sales_order_details($i, ST_SALESQUOTE); $SubTotal = 0; @@ -107,7 +111,7 @@ function print_sales_quotations() $rep->row = $newrow; //$rep->NewLine(1); if ($rep->row < $rep->bottomMargin + (15 * $rep->lineHeight)) - $rep->Header2($myrow, $branch, $myrow, $baccount, ST_SALESQUOTE); + $rep->NewPage(); } if ($myrow['comments'] != "") { @@ -120,14 +124,7 @@ function print_sales_quotations() $rep->row = $rep->bottomMargin + (15 * $rep->lineHeight); $linetype = true; $doctype = ST_SALESQUOTE; - if ($rep->currency != $myrow['curr_code']) - { - include($path_to_root . "/reporting/includes/doctext2.inc"); - } - else - { - include($path_to_root . "/reporting/includes/doctext.inc"); - } + include($path_to_root . "/reporting/includes/doctext.inc"); $rep->TextCol(3, 6, $doc_Sub_total, -2); $rep->TextCol(6, 7, $DisplaySubTot, -2); @@ -142,6 +139,12 @@ function print_sales_quotations() else $rep->TextCol(3, 6, $doc_TOTAL_ORDER2, - 2); $rep->TextCol(6, 7, $DisplayTotal, -2); + $words = price_in_words($myrow["freight_cost"] + $SubTotal, ST_SALESQUOTE); + if ($words != "") + { + $rep->NewLine(1); + $rep->TextCol(1, 7, $myrow['curr_code'] . ": " . $words, - 2); + } $rep->Font(); if ($email == 1) {