if ($prepaid)
$th = array(_("Item Code"), _("Item Description"), _("Units"), _("Quantity"),
_("Price"), _("Tax Type"), _("Discount"), _("Total"));
else
$th = array(_("Item Code"), _("Item Description"), _("Delivered"), _("Units"), _("Invoiced"),
_("This Invoice"), _("Price"), _("Tax Type"), _("Discount"), _("Total"));
if ($prepaid)
$th = array(_("Item Code"), _("Item Description"), _("Units"), _("Quantity"),
_("Price"), _("Tax Type"), _("Discount"), _("Total"));
else
$th = array(_("Item Code"), _("Item Description"), _("Delivered"), _("Units"), _("Invoiced"),
_("This Invoice"), _("Price"), _("Tax Type"), _("Discount"), _("Total"));