if ($myrow['comments'] != "")
{
$rep->NewLine();
- $rep->TextColLines(1, 5, $myrow['comments'], -2);
+ $rep->TextColLines(1, 4, $myrow['comments'], -2);
}
$DisplaySubTot = number_format2($SubTotal,$dec);
$rep->TextCol(6, 7, $DisplaySubTot, -2);
$rep->NewLine();
- $tax_items = get_tax_for_items($items, $prices, 0,
- $myrow['tax_group_id'], $myrow['tax_included'], null, TCA_LINES);
+ $tax_items = get_tax_for_items(ST_PURCHORDER, $items, $prices, $myrow['tax_group_id'], $myrow['tax_included'], TCA_LINES);
$first = true;
foreach($tax_items as $tax_item)
{
if ($first)
{
$rep->TextCol(3, 6, _("Total Tax Excluded"), -2);
- $rep->TextCol(6, 7, number_format2($sign*$tax_item['net_amount'], $dec), -2);
+ $rep->TextCol(6, 7, number_format2($tax_item['net_amount'], $dec), -2);
$rep->NewLine();
}
$rep->TextCol(3, 6, $tax_type_name, -2);