0edc595fde9c28d9493396cb331ce6540443f054
[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         if ($doctype == 8) // Purchase Order
17         {
18                 $doc_Charge_To = _("Order To");
19                 $doc_Delivered_To = _("Charge To");
20         }
21         else
22         {
23                 $doc_Charge_To = _("Charge To");
24                 $doc_Delivered_To = _("Delivered To");
25         }       
26         $doc_Shipping_Company = _("Shipping Company");
27         if ($doctype == 7)
28                 $doc_Due_Date = _("Valid until");
29         elseif ($doctype == 9)
30                 $doc_Due_Date = _("Delivery Date");
31         else
32                 $doc_Due_Date = _("Due Date");
33         $doc_Your_Ref = _("Your Ref");
34         if ($doctype == 26)
35         {
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");
42         }       
43         else
44         {
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");
50         }
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");
56   } else {
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");
61         }
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)
68         {
69                 if ($doctype == 7)
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");
81                 else
82                         $this->title = _("CREDIT NOTE");
83                 if ($doctype == 8)
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"));
89                 else
90                         $this->headers = array(_("Item Code"), _("Item Description"),   _("Quantity"),
91                                 _("Unit"), _("Price"), _("Discount %"), _("Total"));
92         }
93         else if ($doctype == 12)
94         {
95                 $this->title = _("STATEMENT");
96                 $this->headers = array(_("Trans Type"), _("#"), _("Date"), _("DueDate"), _("Charges"),
97                         _("Credits"), _("Allocated"), _("Outstanding"));
98         }
99 }
100 if (isset($emailtype))
101 {
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");
106 }
107 if (isset($header2type) || isset($linetype))
108 {
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.");
113 }
114 if (isset($linetype))
115 {
116         if ($doctype == 7 || $doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13)
117         {
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");
126         }
127         else if ($doctype == 12)
128         {
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");
136         }
137 }
138 ?>