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 = _("Valid until");
29 elseif ($doctype == 9)
30 $doc_Due_Date = _("Delivery Date");
32 $doc_Due_Date = _("Due Date");
33 $doc_Your_Ref = _("Your Ref");
36 $doc_Our_Ref = _("Type");
37 $doc_Your_VAT_no = _("Manufactured Item");
38 $doc_Payment_Terms = _("Required By");
39 $doc_Customers_Ref = _("Reference");
40 $doc_Our_Order_No = _("Into Location");
41 $doc_Due_Date = _("Quantity");
45 $doc_Our_Ref = _("Our Ref.");
46 $doc_Your_VAT_no = _("Your VAT no.");
47 $doc_Payment_Terms = _("Payment Terms");
48 $doc_Customers_Ref = _("Customers Reference");
49 $doc_Our_Order_No = _("Our Order No");
51 $doc_Our_VAT_no = _("Our VAT No.");
52 $doc_Domicile = _("Domicile");
53 if($doctype == 13 || $doctype == 7 || $doctype == 8 || $doctype == 9) {
54 $doc_Bank_Account = '';
55 $doc_Please_Quote = _("All amounts stated in");
57 $doc_Bank_Account = _("Bank Account");
58 $doc_Please_Quote = $doctype==10 ?
59 _("Please quote Invoice no. when paying. All amounts stated in") :
60 _("Please quote Credit no. when paying. All amounts stated in");
62 $doc_Address = _("Address");
63 $doc_Phone_Fax_Email = _("Phone/Fax/Email");
64 $doc_Bank = _("Bank");
65 $doc_Bank_Account = _("Bank Account");
66 $doc_Payment_Link = _("You can pay through");
67 if ($doctype == 7 || $doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13 || $doctype == 26)
70 $this->title = _("SALES QUOTATION");
71 elseif ($doctype == 8)
72 $this->title = _("PURCHASE ORDER");
73 elseif ($doctype == 13)
74 $this->title = ($packing_slip==1 ? _("PACKING SLIP") : _("DELIVERY NOTE"));
75 elseif ($doctype == 9)
76 $this->title = ($print_as_quote==1 ? _("QUOTE") : _("SALES ORDER"));
77 elseif ($doctype == 10)
78 $this->title = _("INVOICE");
79 elseif ($doctype == 26)
80 $this->title = _("WORK ORDER");
82 $this->title = _("CREDIT NOTE");
84 $this->headers = array(_("Item Code"), _("Item Description"),
85 _("Delivery Date"), _("Quantity"), _("Unit"), _("Price"), _("Total"));
86 elseif ($doctype == 26)
87 $this->headers = array(_("Item Code"), _("Item Description"),
88 _("From Location"), _("Work Centre"), _("Unit Quantity"), _("Total Quantity"), _("Units Issued"));
90 $this->headers = array(_("Item Code"), _("Item Description"), _("Quantity"),
91 _("Unit"), _("Price"), _("Discount %"), _("Total"));
93 else if ($doctype == 12)
95 $this->title = _("STATEMENT");
96 $this->headers = array(_("Trans Type"), _("#"), _("Date"), _("DueDate"), _("Charges"),
97 _("Credits"), _("Allocated"), _("Outstanding"));
100 if (isset($emailtype))
102 $doc_Dear_Sirs = _("Dear");
103 $doc_AttachedFile = _("Attached you will find ");
104 $doc_Kindest_regards = _("Kindest regards");
105 $doc_Payment_Link = _("You can pay through");
107 if (isset($header2type) || isset($linetype))
109 $doc_Invoice_no = ($doctype==13 ? _("Delivery Note No.") : (($doctype==7 || $doctype==8 || $doctype==9) ? _("Order no.") :
110 ($doctype==10 ? _("Invoice No.") : ($doctype==26 ? _("Word Order No") : _("Credit No.")))));
111 $doc_Delivery_no = _("Delivery Note No.");
112 $doc_Order_no = _("Order no.");
114 if (isset($linetype))
116 if ($doctype == 7 || $doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13)
118 $doc_Sub_total = _("Sub-total");
119 $doc_Shipping = _("Shipping");
120 $doc_Included = _("Included");
121 $doc_Amount = _("Amount");
122 $doc_TOTAL_INVOICE = $doctype ==10 ? _("TOTAL INVOICE") : _("TOTAL CREDIT");
123 $doc_TOTAL_ORDER = _("TOTAL ORDER EX VAT");
124 $doc_TOTAL_PO = _("TOTAL PO EX VAT");
125 $doc_TOTAL_DELIVERY = _("TOTAL DELIVERY INCL. VAT");
127 else if ($doctype == 12)
129 $doc_Outstanding = _("Outstanding Transactions");
130 $doc_Current = _("Current");
131 $doc_Total_Balance = _("Total Balance");
132 $doc_Statement = _("Statement");
133 $doc_as_of = _("as of");
134 $doc_Days = _("Days");
135 $doc_Over = _("Over");