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";
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', 'Delivery Date',
37 'Quantity', 'Unit', 'Price', 'Total');
39 $this->headers = array('Item Code', 'Item Description', 'Quantity', 'Unit',
40 'Price', 'Discount %', 'Total');
42 else if ($doctype == 12)
44 $this->title = "STATEMENT";
45 $this->headers = array('Trans Type', '#', 'Date', 'Due Date', '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";