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 == ST_PURCHORDER || $doctype == ST_SUPPAYMENT) // 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");
27 if ($doctype == ST_SALESQUOTE)
28 $doc_Due_Date = _("Valid until");
29 elseif ($doctype == ST_SALESORDER)
30 $doc_Due_Date = _("Delivery Date");
32 $doc_Due_Date = _("Due Date");
33 $doc_Your_Ref = _("Your Ref");
34 if ($doctype == ST_WORKORDER)
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 if ($doctype == ST_SUPPAYMENT)
46 $doc_Our_Ref = _("Type");
48 $doc_Our_Ref = _("Sales Person");
49 $doc_Your_VAT_no = _("Your VAT no.");
50 $doc_Payment_Terms = _("Payment Terms");
51 $doc_Customers_Ref = _("Customers Reference");
52 $doc_Our_Order_No = _("Our Order No");
54 $doc_Our_VAT_no = _("Our VAT No.");
55 $doc_Domicile = _("Domicile");
56 if($doctype == ST_CUSTDELIVERY || $doctype == ST_SALESQUOTE || $doctype == ST_PURCHORDER || $doctype == ST_SALESORDER ||
57 $doctype == ST_SUPPAYMENT) {
58 $doc_Bank_Account = '';
59 $doc_Please_Quote = _("All amounts stated in");
61 $doc_Bank_Account = _("Bank Account");
62 $doc_Please_Quote = $doctype==ST_SALESINVOICE ?
63 _("Please quote Invoice no. when paying. All amounts stated in") :
64 _("Please quote Credit no. when paying. All amounts stated in");
66 $doc_Address = _("Address");
67 $doc_Phone_Fax_Email = _("Phone/Fax/Email");
68 $doc_Bank = _("Bank");
69 $doc_Payment_Link = _("You can pay through");
70 if ($doctype == ST_SALESQUOTE || $doctype == ST_PURCHORDER || $doctype == ST_SALESORDER || $doctype == ST_SALESINVOICE ||
71 $doctype == ST_CUSTCREDIT || $doctype == ST_CUSTDELIVERY || $doctype == ST_WORKORDER || $doctype == ST_SUPPAYMENT)
73 if ($doctype == ST_SALESQUOTE)
74 $this->title = _("SALES QUOTATION");
75 elseif ($doctype == ST_PURCHORDER)
76 $this->title = _("PURCHASE ORDER");
77 elseif ($doctype == ST_CUSTDELIVERY)
78 $this->title = ($packing_slip==1 ? _("PACKING SLIP") : _("DELIVERY NOTE"));
79 elseif ($doctype == ST_SALESORDER)
80 $this->title = ($print_as_quote==1 ? _("QUOTE") : _("SALES ORDER"));
81 elseif ($doctype == ST_SALESINVOICE)
82 $this->title = _("INVOICE");
83 elseif ($doctype == ST_WORKORDER)
84 $this->title = _("WORK ORDER");
85 elseif ($doctype == ST_SUPPAYMENT)
86 $this->title = _("REMITTANCE");
88 $this->title = _("CREDIT NOTE");
89 if ($doctype == ST_PURCHORDER)
90 $this->headers = array(_("Item Code"), _("Item Description"),
91 _("Delivery Date"), _("Quantity"), _("Unit"), _("Price"), _("Total"));
92 elseif ($doctype == ST_WORKORDER)
93 $this->headers = array(_("Item Code"), _("Item Description"),
94 _("From Location"), _("Work Centre"), _("Unit Quantity"), _("Total Quantity"), _("Units Issued"));
95 elseif ($doctype == ST_SUPPAYMENT)
96 $this->headers = array(_("Trans Type"), _("#"), _("Date"), _("Due Date"), _("Total Amount"), _("Left to Allocate"), _("This Allocation"));
98 $this->headers = array(_("Item Code"), _("Item Description"), _("Quantity"),
99 _("Unit"), _("Price"), _("Discount %"), _("Total"));
101 else if ($doctype == ST_CUSTPAYMENT)
103 $this->title = _("STATEMENT");
104 $this->headers = array(_("Trans Type"), _("#"), _("Date"), _("DueDate"), _("Charges"),
105 _("Credits"), _("Allocated"), _("Outstanding"));
108 if (isset($emailtype))
110 $doc_Dear_Sirs = _("Dear");
111 $doc_AttachedFile = _("Attached you will find ");
112 $doc_Kindest_regards = _("Kindest regards");
113 $doc_Payment_Link = _("You can pay through");
115 if (isset($header2type) || isset($linetype))
117 $doc_Invoice_no = ($doctype==ST_CUSTDELIVERY ? _("Delivery Note No.") :
118 ($doctype == ST_SUPPAYMENT ? _("Remittance No.") :
119 (($doctype==ST_SALESQUOTE || $doctype==ST_PURCHORDER || $doctype==ST_SALESORDER) ? _("Order no.") :
120 ($doctype==ST_SALESINVOICE ? _("Invoice No.") : ($doctype==ST_WORKORDER ? _("Word Order No") : _("Credit No."))))));
121 $doc_Delivery_no = _("Delivery Note No.");
122 $doc_Order_no = _("Order no.");
124 if (isset($linetype))
126 if ($doctype == ST_SALESQUOTE || $doctype == ST_PURCHORDER || $doctype == ST_SALESORDER ||
127 $doctype == ST_SALESINVOICE || $doctype == ST_CUSTCREDIT || $doctype == ST_CUSTDELIVERY)
129 $doc_Sub_total = _("Sub-total");
130 $doc_Shipping = _("Shipping");
131 $doc_Included = _("Included");
132 $doc_Amount = _("Amount");
133 $doc_TOTAL_INVOICE = $doctype ==ST_SALESINVOICE ? _("TOTAL INVOICE") : _("TOTAL CREDIT");
134 $doc_TOTAL_ORDER = _("TOTAL ORDER EX VAT");
135 $doc_TOTAL_ORDER2 = _("TOTAL ORDER VAT INCL.");
136 $doc_TOTAL_PO = _("TOTAL PO EX VAT");
137 $doc_TOTAL_DELIVERY = _("TOTAL DELIVERY INCL. VAT");
139 elseif ($doctype == ST_SUPPAYMENT)
141 $doc_Total_Allocated = _("Total Allocated");
142 $doc_Left_To_Allocate = _("Left to Allocate");
143 $doc_Total_Payment = _("TOTAL REMITTANCE");
145 elseif ($doctype == ST_CUSTPAYMENT)
147 $doc_Outstanding = _("Outstanding Transactions");
148 $doc_Current = _("Current");
149 $doc_Total_Balance = _("Total Balance");
150 $doc_Statement = _("Statement");
151 $doc_as_of = _("as of");
152 $doc_Days = _("Days");
153 $doc_Over = _("Over");