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");
32 $doc_Our_Ref = _("Our Ref.");
33 $doc_Your_VAT_no = _("Your VAT no.");
34 $doc_Our_VAT_no = _("Our VAT No.");
35 $doc_Payment_Terms = _("Payment Terms");
36 $doc_Customers_Ref = _("Customers Reference");
37 $doc_Our_Order_No = _("Our Order No");
38 $doc_Domicile = _("Domicile");
39 if($doctype == 13 || $doctype == 8 || $doctype == 9) {
40 $doc_Bank_Account = '';
41 $doc_Please_Quote = _("All amounts stated in");
43 $doc_Bank_Account = _("Bank Account");
44 $doc_Please_Quote = $doctype==10 ?
45 _("Please quote Invoice no. when paying. All amounts stated in") :
46 _("Please quote Credit no. when paying. All amounts stated in");
48 $doc_Address = _("Address");
49 $doc_Phone_Fax_Email = _("Phone/Fax/Email");
50 $doc_Bank = _("Bank");
51 $doc_Bank_Account = _("Bank Account");
52 $doc_Payment_Link = _("You can pay through");
53 if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13)
56 $this->title = _("PURCHASE ORDER");
57 else if ($doctype == 13)
58 $this->title = _("DELIVERY NOTE");
59 else if ($doctype == 9)
60 $this->title = ($print_as_quote==1 ? _("QUOTE") : _("SALES ORDER"));
61 else if ($doctype == 10)
62 $this->title = _("INVOICE");
64 $this->title = _("CREDIT NOTE");
66 $this->headers = array(_("Item Code"), _("Item Description"),
67 _("Delivery Date"), _("Quantity"), _("Unit"), _("Price"), _("Total"));
69 $this->headers = array(_("Item Code"), _("Item Description"), _("Quantity"),
70 _("Unit"), _("Price"), _("Discount %"), _("Total"));
72 else if ($doctype == 12)
74 $this->title = _("STATEMENT");
75 $this->headers = array(_("Trans Type"), _("#"), _("Date"), _("DueDate"), _("Charges"),
76 _("Credits"), _("Allocated"), _("Outstanding"));
79 if (isset($emailtype))
81 $doc_Dear_Sirs = _("Dear");
82 $doc_AttachedFile = _("Attached you will find ");
83 $doc_Kindest_regards = _("Kindest regards");
84 $doc_Payment_Link = _("You can pay through");
86 if (isset($header2type) || isset($linetype))
88 $doc_Invoice_no = ($doctype==13 ? _("Delivery Note No.") : (($doctype==8 || $doctype==9) ? _("Order no.") :
89 ($doctype==10 ? _("Invoice No.") : _("Credit No."))));
90 $doc_Delivery_no = _("Delivery Note No.");
91 $doc_Order_no = _("Order no.");
95 if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13)
97 $doc_Sub_total = _("Sub-total");
98 $doc_Shipping = _("Shipping");
99 $doc_Included = _("Included");
100 $doc_Amount = _("Amount");
101 $doc_TOTAL_INVOICE = $doctype ==10 ? _("TOTAL INVOICE") : _("TOTAL CREDIT");
102 $doc_TOTAL_ORDER = _("TOTAL ORDER EX VAT");
103 $doc_TOTAL_PO = _("TOTAL PO EX VAT");
104 $doc_TOTAL_DELIVERY = _("TOTAL DELIVERY INCL. VAT");
106 else if ($doctype == 12)
108 $doc_Outstanding = _("Outstanding Transactions");
109 $doc_Current = _("Current");
110 $doc_Total_Balance = _("Total Balance");
111 $doc_Statement = _("Statement");
112 $doc_as_of = _("as of");
113 $doc_Days = _("Days");
114 $doc_Over = _("Over");