+ else
+ {
+ $SubTotal += $tax_item['Value'];
+ $rep->TextCol(3, 6, $tax_type_name, -2);
+ $rep->TextCol(6, 7, $DisplayTax, -2);
+ }
+ $rep->NewLine();
+ }
+
+ $rep->NewLine();
+
+ $DisplayTotal = number_format2($myrow["freight_cost"] + $SubTotal, $dec);
+ $rep->Font('bold');
+ $rep->TextCol(3, 6, _("TOTAL ORDER VAT INCL."), - 2);
+ $rep->TextCol(6, 7, $DisplayTotal, -2);
+ $words = price_in_words($myrow["freight_cost"] + $SubTotal, ST_SALESORDER);
+ if ($words != "")
+ {
+ $rep->NewLine(1);
+ $rep->TextCol(1, 7, $myrow['curr_code'] . ": " . $words, - 2);