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