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