Changed so Printed Sales Order (Quotation) shows TOTAL VAT INCL. if it is.
[fa-stable.git] / reporting / rep111.php
index a16a1d7fc0efd7fc7e23657804b90aa9542453f1..826089bca9f5577b56032b6e56e20d2cbfa717d5 100644 (file)
@@ -137,7 +137,10 @@ function print_sales_quotations()
                $rep->NewLine();
                $DisplayTotal = number_format2($myrow["freight_cost"] + $SubTotal, $dec);
                $rep->Font('bold');
-               $rep->TextCol(3, 6, $doc_TOTAL_ORDER, - 2);
+               if ($myrow['tax_included'] == 0)
+                       $rep->TextCol(3, 6, $doc_TOTAL_ORDER, - 2);
+               else    
+                       $rep->TextCol(3, 6, $doc_TOTAL_ORDER2, - 2);
                $rep->TextCol(6, 7,     $DisplayTotal, -2);
                $rep->Font();
                if ($email == 1)