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