2 /**********************************************************************
3 Copyright (C) FrontAccounting, LLC.
4 Released under the terms of the GNU General Public License, GPL,
5 as published by the Free Software Foundation, either version 3
6 of the License, or (at your option) any later version.
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
11 ***********************************************************************/
12 if (isset($header2type))
14 $doc_Cust_no = "Cust no";
16 if ($doctype == 8) // Purchase Order
18 $doc_Charge_To = "Order To";
19 $doc_Delivered_To = "Charge To";
23 $doc_Charge_To = "Charge To";
24 $doc_Delivered_To = "Delivered To";
26 $doc_Shipping_Company = "Shipping Company";
28 $doc_Due_Date = "Delivery Date";
30 $doc_Due_Date = "Due Date";
31 $doc_Your_Ref = "Your Ref";
32 $doc_Our_Ref = "Our Ref.";
33 $doc_Your_VAT_no = "Your VAT No.";
34 $doc_Our_VAT_no = "Our VAT No.";
35 $doc_Payment_Terms = "Payment Terms";
36 $doc_Customers_Ref = "Customers Reference";
37 $doc_Our_Order_No = "Our Order No";
38 $doc_Domicile = "Domicile";
39 if($doctype == 13 || $doctype == 8 || $doctype == 9) {
40 $doc_Bank_Account = '';
41 $doc_Please_Quote = "All amounts stated in";
43 $doc_Please_Quote = "Please quote ".($doctype==10 ? "Invoice" : "Credit")
44 ." no. when paying. All amounts stated in";
45 $doc_Bank_Account = "Bank Account";
47 $doc_Address = "Address";
48 $doc_Phone_Fax_Email = "Phone/Fax/Email";
50 $doc_Bank_Account = "Bank Account";
51 $doc_Payment_Link = "You can pay through";
52 if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13)
55 $this->title = "PURCHASE ORDER";
56 else if ($doctype == 9)
57 $this->title = ($print_as_quote==1 ? "QUOTE" : "SALES ORDER");
58 else if ($doctype == 10)
59 $this->title = "INVOICE";
60 else if ($doctype == 13)
61 $this->title = "DELIVERY NOTE";
63 $this->title = "CREDIT NOTE";
65 $this->headers = array('Item Code', 'Item Description', 'Delivery Date',
66 'Quantity', 'Unit', 'Price', 'Total');
68 $this->headers = array('Item Code', 'Item Description', 'Quantity', 'Unit',
69 'Price', 'Discount %', 'Total');
71 else if ($doctype == 12)
73 $this->title = "STATEMENT";
74 $this->headers = array('Trans Type', '#', 'Date', 'Due Date', 'Charges',
75 'Credits', 'Allocated', 'Outstanding');
78 if (isset($emailtype))
80 $doc_Dear_Sirs = "Dear Sirs";
81 $doc_AttachedFile = "Attached you will find ";
82 $doc_Kindest_regards = "Kindest regards";
83 $doc_Payment_Link = "You can pay through";
85 if (isset($header2type) || isset($linetype))
87 $doc_Invoice_no = ($doctype==13 ? "Delivery Note No." : (($doctype==8 || $doctype==9) ? "Order no." :
88 ($doctype==10 ? "Invoice No." : "Credit No.")));
89 $doc_Delivery_no = "Delivery Note No.";
90 $doc_Order_no = "Order no.";
94 if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13)
96 $doc_Sub_total = "Sub-total";
97 $doc_Shipping = "Shipping";
98 $doc_Included = "Included";
99 $doc_Amount = "amount";
100 $doc_TOTAL_INVOICE = $doctype==10 ? "TOTAL INVOICE" : "TOTAL CREDIT";
101 $doc_TOTAL_ORDER = "TOTAL ORDER EX VAT";
102 $doc_TOTAL_PO = "TOTAL PO EX VAT";
103 $doc_TOTAL_DELIVERY = "TOTAL DELIVERY INCL. VAT";
105 else if ($doctype == 12)
107 $doc_Outstanding = "Outstanding Transactions";
108 $doc_Current = "Current";
109 $doc_Total_Balance = "Total Balance";
110 $doc_Statement = "Statement";
111 $doc_as_of = "as of";