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