X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep111.php;h=5db2f9d06dd40f8ce9281e46d4c1eea7228f35fa;hb=d1b959c4b73664327c2e17d5bb3fb515aabfa449;hp=826089bca9f5577b56032b6e56e20d2cbfa717d5;hpb=d09ac1d8c60cce3aa02730838bb06e1caf384417;p=fa-stable.git diff --git a/reporting/rep111.php b/reporting/rep111.php index 826089bc..5db2f9d0 100644 --- a/reporting/rep111.php +++ b/reporting/rep111.php @@ -78,7 +78,7 @@ function print_sales_quotations() $rep->Info($params, $cols, null, $aligns); } $rep->title = _("SALES QUOTATION"); - $rep->Header2($myrow, $branch, $myrow, $baccount, 7); + $rep->Header2($myrow, $branch, $myrow, $baccount, ST_SALESQUOTE); $result = get_sales_order_details($i, ST_SALESQUOTE); $SubTotal = 0; @@ -107,7 +107,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, 9); + $rep->Header2($myrow, $branch, $myrow, $baccount, ST_SALESQUOTE); } if ($myrow['comments'] != "") { @@ -119,7 +119,7 @@ function print_sales_quotations() $rep->row = $rep->bottomMargin + (15 * $rep->lineHeight); $linetype = true; - $doctype = 9; + $doctype = ST_SALESQUOTE; if ($rep->currency != $myrow['curr_code']) { include($path_to_root . "/reporting/includes/doctext2.inc"); @@ -142,6 +142,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) {