Merging version 2.1 RC to main trunk.
[fa-stable.git] / reporting / includes / doctext2.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         $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";
34   } else {
35          $doc_Please_Quote = "Please quote Invoice no. when paying. All amounts stated in";
36          $doc_Bank_Account = "Bank Account";
37         }
38         $doc_Address = "Address";
39         $doc_Phone_Fax_Email = "Phone/Fax/Email";
40         $doc_Bank = "Bank";
41         $doc_Bank_Account = "Bank Account";
42         $doc_Payment_Link = "You can pay through";
43         if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13)
44         {
45                 if ($doctype == 8)
46                         $this->title = "PURCHASE ORDER";
47                 else if ($doctype == 9)
48                         $this->title = ($print_as_quote==1 ? "QUOTE" : "SALES ORDER");
49                 else if ($doctype == 10)
50                         $this->title = "INVOICE";
51                 else if ($doctype == 13)
52                         $this->title = "DELIVERY NOTE";
53                 else
54                         $this->title = "CREDIT NOTE";
55                 if ($doctype == 8)
56                         $this->headers = array('Item Code', 'Item Description', 'Delivery Date',
57                                 'Quantity', 'Unit',     'Price', 'Total');
58                 else
59                         $this->headers = array('Item Code', 'Item Description', 'Quantity', 'Unit',
60                                 'Price', 'Discount %', 'Total');
61         }
62         else if ($doctype == 12)
63         {
64                 $this->title = "STATEMENT";
65                 $this->headers = array('Trans Type', '#', 'Date', 'Due Date', 'Charges',
66                         'Credits', 'Allocated', 'Outstanding');
67         }
68 }
69 if (isset($emailtype))
70 {
71         $doc_Dear_Sirs = "Dear Sirs";
72         $doc_AttachedFile = "Attached you will find ";
73         $doc_Kindest_regards = "Kindest regards";
74         $doc_Payment_Link = "You can pay through";
75 }
76 if (isset($header2type) || isset($linetype))
77 {
78         $doc_Invoice_no = ($doctype==13 ? "Delivery Note No." : (($doctype==8 || $doctype==9) ? "Order no." : "Invoice No."));
79         $doc_Delivery_no = "Delivery Note No.";
80         $doc_Order_no = "Order no.";
81 }
82 if (isset($linetype))
83 {
84         if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13)
85         {
86                 $doc_Sub_total = "Sub-total";
87                 $doc_Shipping = "Shipping";
88                 $doc_Included = "Included";
89                 $doc_Amount = "amount";
90                 $doc_TOTAL_INVOICE = "TOTAL INVOICE";
91                 $doc_TOTAL_ORDER = "TOTAL ORDER EX VAT";
92                 $doc_TOTAL_PO = "TOTAL PO EX VAT";
93                 $doc_TOTAL_DELIVERY = "TOTAL DELIVERY INCL. VAT";
94         }
95         else if ($doctype == 12)
96         {
97                 $doc_Outstanding = "Outstanding Transactions";
98                 $doc_Current = "Current";
99                 $doc_Total_Balance = "Total Balance";
100                 $doc_Statement = "Statement";
101                 $doc_as_of = "as of";
102                 $doc_Days = "Days";
103                 $doc_Over = "Over";
104         }
105 }
106 ?>