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";
34 $doc_Our_Ref = "Type";
35 $doc_Your_VAT_no = "Manufactured Item";
36 $doc_Payment_Terms = "Required By";
37 $doc_Customers_Ref = "Reference";
38 $doc_Our_Order_No = "Into Location";
39 $doc_Due_Date = "Quantity";
43 $doc_Our_Ref = "Our Ref.";
44 $doc_Your_VAT_no = "Your VAT no.";
45 $doc_Payment_Terms = "Payment Terms";
46 $doc_Customers_Ref = "Customers Reference";
47 $doc_Our_Order_No = "Our Order No";
49 $doc_Our_VAT_no = "Our VAT No.";
50 $doc_Domicile = "Domicile";
51 if($doctype == 13 || $doctype == 8 || $doctype == 9) {
52 $doc_Bank_Account = '';
53 $doc_Please_Quote = "All amounts stated in";
55 $doc_Please_Quote = "Please quote ".($doctype==10 ? "Invoice" : "Credit")
56 ." no. when paying. All amounts stated in";
57 $doc_Bank_Account = "Bank Account";
59 $doc_Address = "Address";
60 $doc_Phone_Fax_Email = "Phone/Fax/Email";
62 $doc_Bank_Account = "Bank Account";
63 $doc_Payment_Link = "You can pay through";
64 if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13 || $doctype == 26)
67 $this->title = "PURCHASE ORDER";
68 elseif ($doctype == 9)
69 $this->title = ($print_as_quote==1 ? "QUOTE" : "SALES ORDER");
70 elseif ($doctype == 10)
71 $this->title = "INVOICE";
72 elseif ($doctype == 13)
73 $this->title = "DELIVERY NOTE";
74 elseif ($doctype == 26)
75 $this->title = "WORK ORDER";
77 $this->title = "CREDIT NOTE";
79 $this->headers = array('Item Code', 'Item Description', 'Delivery Date',
80 'Quantity', 'Unit', 'Price', 'Total');
81 elseif ($doctype == 26)
82 $this->headers = array("Item Code", "Item Description",
83 "From Location", "Work Centre", "Unit Quantity", "Total Quantity", "Units Issued");
85 $this->headers = array('Item Code', 'Item Description', 'Quantity', 'Unit',
86 'Price', 'Discount %', 'Total');
88 else if ($doctype == 12)
90 $this->title = "STATEMENT";
91 $this->headers = array('Trans Type', '#', 'Date', 'Due Date', 'Charges',
92 'Credits', 'Allocated', 'Outstanding');
95 if (isset($emailtype))
97 $doc_Dear_Sirs = "Dear";
98 $doc_AttachedFile = "Attached you will find ";
99 $doc_Kindest_regards = "Kindest regards";
100 $doc_Payment_Link = "You can pay through";
102 if (isset($header2type) || isset($linetype))
104 $doc_Invoice_no = ($doctype==13 ? "Delivery Note No." : (($doctype==8 || $doctype==9) ? "Order no." :
105 ($doctype==10 ? "Invoice No." : ($doctype == 26 ? "Work Order No" : "Credit No."))));
106 $doc_Delivery_no = "Delivery Note No.";
107 $doc_Order_no = "Order no.";
109 if (isset($linetype))
111 if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13)
113 $doc_Sub_total = "Sub-total";
114 $doc_Shipping = "Shipping";
115 $doc_Included = "Included";
116 $doc_Amount = "amount";
117 $doc_TOTAL_INVOICE = $doctype==10 ? "TOTAL INVOICE" : "TOTAL CREDIT";
118 $doc_TOTAL_ORDER = "TOTAL ORDER EX VAT";
119 $doc_TOTAL_PO = "TOTAL PO EX VAT";
120 $doc_TOTAL_DELIVERY = "TOTAL DELIVERY INCL. VAT";
122 else if ($doctype == 12)
124 $doc_Outstanding = "Outstanding Transactions";
125 $doc_Current = "Current";
126 $doc_Total_Balance = "Total Balance";
127 $doc_Statement = "Statement";
128 $doc_as_of = "as of";