2 if (isset($header2type))
4 $doc_Cust_no = _("Cust no");
6 $doc_Charge_To = _("Charge To");
7 $doc_Delivered_To = _("Delivered To");
8 $doc_Shipping_Company = _("Shipping Company");
10 $doc_Due_Date = _("Delivery Date");
12 $doc_Due_Date = _("Due Date");
13 $doc_Your_Ref = _("Your Ref");
14 $doc_Our_Ref = _("Our Ref.");
15 $doc_Your_VAT_no = _("Your VAT no.");
16 $doc_Our_VAT_no = _("Our VAT No.");
17 $doc_Payment_Terms = _("Payment Terms");
18 $doc_Our_Order_No = _("Our Order No");
19 $doc_Domicile = _("Domicile");
20 $doc_Please_Quote = _("Please quote Invoice no. when paying. All amounts stated in");
21 $doc_Address = _("Address");
22 $doc_Phone_Fax_Email = _("Phone/Fax/Email");
23 $doc_Bank = _("Bank");
24 $doc_Bank_Account = _("Bank Account");
25 if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11)
28 $this->title = _("PURCHASE ORDER");
29 else if ($doctype == 9)
30 $this->title = _("SALES ORDER");
31 else if ($doctype == 10)
32 $this->title = _("INVOICE");
34 $this->title = _("CREDIT NOTE");
36 $this->headers = array(_("Item Code"), _("Item Description"),
37 _("Delivery Date"), _("Quantity"), _("Unit"), _("Price"), _("Total"));
39 $this->headers = array(_("Item Code"), _("Item Description"), _("Quantity"),
40 _("Unit"), _("Price"), _("Discount %"), _("Total"));
42 else if ($doctype == 12)
44 $this->title = _("STATEMENT");
45 $this->headers = array(_("Trans Type"), _("#"), _("Date"), _("DueDate"), _("Charges"),
46 _("Credits"), _("Allocated"), _("Outstanding"));
49 if (isset($emailtype))
51 $doc_Dear_Sirs = _("Dear Sirs");
52 $doc_AttachedFile = _("Attached you will find ");
53 $doc_Kindest_regards = _("Kindest regards");
55 if (isset($header2type) || isset($linetype))
57 $doc_Invoice_no = _("Invoice no.");
58 $doc_Order_no = _("Order no.");
62 if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11)
64 $doc_Sub_total = _("Sub-total");
65 $doc_Shipping = _("Shipping");
66 $doc_Included = _("Included");
67 $doc_Amount = _("Amount");
68 $doc_TOTAL_INVOICE = _("TOTAL INVOICE");
69 $doc_TOTAL_ORDER = _("TOTAL ORDER EX VAT");
70 $doc_TOTAL_PO = _("TOTAL PO EX VAT");
72 else if ($doctype == 12)
74 $doc_Outstanding = _("Outstanding Transactions");
75 $doc_Current = _("Current");
76 $doc_Total_Balance = _("Total Balance");
77 $doc_Statement = _("Statement");
78 $doc_as_of = _("as of");
79 $doc_Days = _("Days");
80 $doc_Over = _("Over");