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");
15 $doc_Date = _("Date");
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_Bank_Account = _("Bank Account");
56 $doc_Please_Quote = $doctype==10 ?
57 _("Please quote Invoice no. when paying. All amounts stated in") :
58 _("Please quote Credit no. when paying. All amounts stated in");
60 $doc_Address = _("Address");
61 $doc_Phone_Fax_Email = _("Phone/Fax/Email");
62 $doc_Bank = _("Bank");
63 $doc_Bank_Account = _("Bank Account");
64 $doc_Payment_Link = _("You can pay through");
65 if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13 || $doctype == 26)
68 $this->title = _("PURCHASE ORDER");
69 elseif ($doctype == 13)
70 $this->title = _("DELIVERY NOTE");
71 elseif ($doctype == 9)
72 $this->title = ($print_as_quote==1 ? _("QUOTE") : _("SALES ORDER"));
73 elseif ($doctype == 10)
74 $this->title = _("INVOICE");
75 elseif ($doctype == 26)
76 $this->title = _("WORK ORDER");
78 $this->title = _("CREDIT NOTE");
80 $this->headers = array(_("Item Code"), _("Item Description"),
81 _("Delivery Date"), _("Quantity"), _("Unit"), _("Price"), _("Total"));
82 elseif ($doctype == 26)
83 $this->headers = array(_("Item Code"), _("Item Description"),
84 _("From Location"), _("Work Centre"), _("Unit Quantity"), _("Total Quantity"), _("Units Issued"));
86 $this->headers = array(_("Item Code"), _("Item Description"), _("Quantity"),
87 _("Unit"), _("Price"), _("Discount %"), _("Total"));
89 else if ($doctype == 12)
91 $this->title = _("STATEMENT");
92 $this->headers = array(_("Trans Type"), _("#"), _("Date"), _("DueDate"), _("Charges"),
93 _("Credits"), _("Allocated"), _("Outstanding"));
96 if (isset($emailtype))
98 $doc_Dear_Sirs = _("Dear");
99 $doc_AttachedFile = _("Attached you will find ");
100 $doc_Kindest_regards = _("Kindest regards");
101 $doc_Payment_Link = _("You can pay through");
103 if (isset($header2type) || isset($linetype))
105 $doc_Invoice_no = ($doctype==13 ? _("Delivery Note No.") : (($doctype==8 || $doctype==9) ? _("Order no.") :
106 ($doctype==10 ? _("Invoice No.") : ($doctype==26 ? _("Word Order No") : _("Credit No.")))));
107 $doc_Delivery_no = _("Delivery Note No.");
108 $doc_Order_no = _("Order no.");
110 if (isset($linetype))
112 if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13)
114 $doc_Sub_total = _("Sub-total");
115 $doc_Shipping = _("Shipping");
116 $doc_Included = _("Included");
117 $doc_Amount = _("Amount");
118 $doc_TOTAL_INVOICE = $doctype ==10 ? _("TOTAL INVOICE") : _("TOTAL CREDIT");
119 $doc_TOTAL_ORDER = _("TOTAL ORDER EX VAT");
120 $doc_TOTAL_PO = _("TOTAL PO EX VAT");
121 $doc_TOTAL_DELIVERY = _("TOTAL DELIVERY INCL. VAT");
123 else if ($doctype == 12)
125 $doc_Outstanding = _("Outstanding Transactions");
126 $doc_Current = _("Current");
127 $doc_Total_Balance = _("Total Balance");
128 $doc_Statement = _("Statement");
129 $doc_as_of = _("as of");
130 $doc_Days = _("Days");
131 $doc_Over = _("Over");