- if ($doctype == 8)
- $this->headers = array(_("Item Code"), _("Item Description"),
- _("Delivery Date"), _("Quantity"), _("Unit"), _("Price"), _("Total"));
- else
- $this->headers = array(_("Item Code"), _("Item Description"), _("Quantity"),
- _("Unit"), _("Price"), _("Discount %"), _("Total"));
- }
- else if ($doctype == 12)
+ if ($doctype == ST_PURCHORDER)
+ $this->headers = array(_("Item Code"), _("Item Description"),
+ _("Delivery Date"), _("Quantity"), _("Unit"), _("Price"), _("Total"));
+ elseif ($doctype == ST_WORKORDER)
+ $this->headers = array(_("Item Code"), _("Item Description"),
+ _("From Location"), _("Work Centre"), _("Unit Quantity"), _("Total Quantity"), _("Units Issued"));
+ elseif ($doctype == ST_SUPPAYMENT || $doctype == ST_CUSTPAYMENT)
+ $this->headers = array(_("Trans Type"), _("#"), _("Date"), _("Due Date"), _("Total Amount"), _("Left to Allocate"), _("This Allocation"));
+ else
+ $this->headers = array(_("Item Code"), _("Item Description"), _("Quantity"),
+ _("Unit"), _("Price"), _("Discount %"), _("Total"));
+ }
+ else if ($doctype == ST_STATEMENT)