Huge sales module changes toward delivery and invoicing separation. Includes some...
[fa-stable.git] / reporting / includes / doctext2.inc
1 <?php
2 if (isset($header2type))
3 {
4         $doc_Cust_no = "Cust no";
5         $doc_Date = "Date";
6         $doc_Charge_To = "Charge To";
7         $doc_Delivered_To = "Delivered To";
8         $doc_Shipping_Company = "Shipping Company";
9         if ($doctype == 9)
10                 $doc_Due_Date = "Delivery Date";
11         else    
12                 $doc_Due_Date = "Due Date";
13         $doc_Your_Ref = "Your Ref";
14         $doc_Our_Ref = "Our Ref.";
15         $doc_Your_VAT_no = "Your VAT No.";
16         $doc_Our_VAT_no = "Our VAT No.";
17         $doc_Payment_Terms = "Payment Terms";
18         $doc_Our_Order_No = "Our Order No";
19         $doc_Domicile = "Domicile";
20         if($doctype == 13) {
21          $doc_Bank_Account = '';
22          $doc_Please_Quote = "All amounts stated in";
23   } else {
24          $doc_Please_Quote = "Please quote Invoice no. when paying. All amounts stated in";
25          $doc_Bank_Account = "Bank Account";
26         }
27         $doc_Address = "Address";
28         $doc_Phone_Fax_Email = "Phone/Fax/Email";
29         $doc_Bank = "Bank";
30         $doc_Bank_Account = "Bank Account";
31         $doc_Payment_Link = "You can pay through";
32         if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13)
33         {
34                 if ($doctype == 8)
35                         $this->title = "PURCHASE ORDER";
36                 else if ($doctype == 9)
37                         $this->title = ($print_as_quote==1 ? _("QUOTE") : _("SALES ORDER"));
38                 else if ($doctype == 10)
39                         $this->title = "INVOICE";
40                 else if ($doctype == 13)
41                         $this->title = _("DELIVERY NOTE");
42                 else
43                         $this->title = "CREDIT NOTE";
44                 if ($doctype == 8)      
45                         $this->headers = array('Item Code', 'Item Description', 'Delivery Date', 
46                                 'Quantity', 'Unit',     'Price', 'Total');      
47                 else            
48                         $this->headers = array('Item Code', 'Item Description', 'Quantity', 'Unit',
49                                 'Price', 'Discount %', 'Total');        
50         }               
51         else if ($doctype == 12)
52         {
53                 $this->title = "STATEMENT";
54                 $this->headers = array('Trans Type', '#', 'Date', 'Due Date', 'Charges',
55                         'Credits', 'Allocated', 'Outstanding');
56         }               
57 }
58 if (isset($emailtype))
59 {
60         $doc_Dear_Sirs = "Dear Sirs";
61         $doc_AttachedFile = "Attached you will find ";
62         $doc_Kindest_regards = "Kindest regards";
63         $doc_Payment_Link = "You can pay through";
64 }
65 if (isset($header2type) || isset($linetype))
66 {
67         $doc_Document_no = $doctype==13 ? "Delivery Note No." : "Invoice No.";
68         $doc_Order_no = "Order no.";
69 }       
70 if (isset($linetype))
71 {
72         if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13)
73         {
74                 $doc_Sub_total = "Sub-total";
75                 $doc_Shipping = "Shipping";
76                 $doc_Included = "Included";
77                 $doc_Amount = "amount";
78                 $doc_TOTAL_INVOICE = "TOTAL INVOICE";
79                 $doc_TOTAL_ORDER = "TOTAL ORDER EX VAT";
80                 $doc_TOTAL_PO = "TOTAL PO EX VAT";
81                 $doc_TOTAL_DELIVERY = "TOTAL DELIVERY INCL. VAT";
82         }
83         else if ($doctype == 12)
84         {
85                 $doc_Outstanding = "Outstanding Transactions";
86                 $doc_Current = "Current";
87                 $doc_Total_Balance = "Total Balance";
88                 $doc_Statement = "Statement";
89                 $doc_as_of = "as of";
90                 $doc_Days = "Days";
91                 $doc_Over = "Over";
92         }       
93 }
94 ?>