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 $doc_Charge_To = _("Charge To");
17 $doc_Delivered_To = _("Delivered To");
18 $doc_Shipping_Company = _("Shipping Company");
20 $doc_Due_Date = _("Delivery Date");
22 $doc_Due_Date = _("Due Date");
23 $doc_Your_Ref = _("Your Ref");
24 $doc_Our_Ref = _("Our Ref.");
25 $doc_Your_VAT_no = _("Your VAT no.");
26 $doc_Our_VAT_no = _("Our VAT No.");
27 $doc_Payment_Terms = _("Payment Terms");
28 $doc_Customers_Ref = _("Customers Reference");
29 $doc_Our_Order_No = _("Our Order No");
30 $doc_Domicile = _("Domicile");
31 if($doctype == 13 || $doctype == 8 || $doctype == 9) {
32 $doc_Bank_Account = '';
33 $doc_Please_Quote = _("All amounts stated in");
35 $doc_Bank_Account = _("Bank Account");
36 $doc_Please_Quote = $doctype==10 ?
37 _("Please quote Invoice no. when paying. All amounts stated in") :
38 _("Please quote Credit no. when paying. All amounts stated in");
40 $doc_Address = _("Address");
41 $doc_Phone_Fax_Email = _("Phone/Fax/Email");
42 $doc_Bank = _("Bank");
43 $doc_Bank_Account = _("Bank Account");
44 $doc_Payment_Link = _("You can pay through");
45 if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13)
48 $this->title = _("PURCHASE ORDER");
49 else if ($doctype == 13)
50 $this->title = _("DELIVERY NOTE");
51 else if ($doctype == 9)
52 $this->title = ($print_as_quote==1 ? _("QUOTE") : _("SALES ORDER"));
53 else if ($doctype == 10)
54 $this->title = _("INVOICE");
56 $this->title = _("CREDIT NOTE");
58 $this->headers = array(_("Item Code"), _("Item Description"),
59 _("Delivery Date"), _("Quantity"), _("Unit"), _("Price"), _("Total"));
61 $this->headers = array(_("Item Code"), _("Item Description"), _("Quantity"),
62 _("Unit"), _("Price"), _("Discount %"), _("Total"));
64 else if ($doctype == 12)
66 $this->title = _("STATEMENT");
67 $this->headers = array(_("Trans Type"), _("#"), _("Date"), _("DueDate"), _("Charges"),
68 _("Credits"), _("Allocated"), _("Outstanding"));
71 if (isset($emailtype))
73 $doc_Dear_Sirs = _("Dear Sirs");
74 $doc_AttachedFile = _("Attached you will find ");
75 $doc_Kindest_regards = _("Kindest regards");
76 $doc_Payment_Link = _("You can pay through");
78 if (isset($header2type) || isset($linetype))
80 $doc_Invoice_no = ($doctype==13 ? _("Delivery Note No.") : (($doctype==8 || $doctype==9) ? _("Order no.") :
81 ($doctype==10 ? _("Invoice No.") : _("Credit No."))));
82 $doc_Delivery_no = _("Delivery Note No.");
83 $doc_Order_no = _("Order no.");
87 if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13)
89 $doc_Sub_total = _("Sub-total");
90 $doc_Shipping = _("Shipping");
91 $doc_Included = _("Included");
92 $doc_Amount = _("Amount");
93 $doc_TOTAL_INVOICE = $doctype ==10 ? _("TOTAL INVOICE") : _("TOTAL CREDIT");
94 $doc_TOTAL_ORDER = _("TOTAL ORDER EX VAT");
95 $doc_TOTAL_PO = _("TOTAL PO EX VAT");
96 $doc_TOTAL_DELIVERY = _("TOTAL DELIVERY INCL. VAT");
98 else if ($doctype == 12)
100 $doc_Outstanding = _("Outstanding Transactions");
101 $doc_Current = _("Current");
102 $doc_Total_Balance = _("Total Balance");
103 $doc_Statement = _("Statement");
104 $doc_as_of = _("as of");
105 $doc_Days = _("Days");
106 $doc_Over = _("Over");