Moving 2.0 development version to main trunk.
[fa-stable.git] / reporting / includes / doctext.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_Bank_Account = _("Bank Account");
26          $doc_Please_Quote = _("Please quote Invoice no. when paying. All amounts stated in");
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 == 13)
38                         $this->title = _("DELIVERY NOTE");
39                 else if ($doctype == 9)
40                         $this->title = ($print_as_quote==1 ? _("QUOTE") : _("SALES ORDER"));
41                 else if ($doctype == 10)
42                         $this->title = _("INVOICE");
43                 else
44                         $this->title = _("CREDIT NOTE");
45                 if ($doctype == 8)
46                         $this->headers = array(_("Item Code"), _("Item Description"),
47                                 _("Delivery Date"), _("Quantity"),      _("Unit"), _("Price"), _("Total"));
48                 else
49                         $this->headers = array(_("Item Code"), _("Item Description"),   _("Quantity"),
50                                 _("Unit"), _("Price"), _("Discount %"), _("Total"));
51         }
52         else if ($doctype == 12)
53         {
54                 $this->title = _("STATEMENT");
55                 $this->headers = array(_("Trans Type"), _("#"), _("Date"), _("DueDate"), _("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_Delivery_no = "Delivery Note No.";
70         $doc_Order_no = _("Order no.");
71 }
72 if (isset($linetype))
73 {
74         if ($doctype == 8 || $doctype == 9 || $doctype == 10 || $doctype == 11 || $doctype == 13)
75         {
76                 $doc_Sub_total = _("Sub-total");
77                 $doc_Shipping = _("Shipping");
78                 $doc_Included = _("Included");
79                 $doc_Amount = _("Amount");
80                 $doc_TOTAL_INVOICE = _("TOTAL INVOICE");
81                 $doc_TOTAL_ORDER = _("TOTAL ORDER EX VAT");
82                 $doc_TOTAL_PO = _("TOTAL PO EX VAT");
83                 $doc_TOTAL_DELIVERY = _("TOTAL DELIVERY INCL. VAT");
84         }
85         else if ($doctype == 12)
86         {
87                 $doc_Outstanding = _("Outstanding Transactions");
88                 $doc_Current = _("Current");
89                 $doc_Total_Balance = _("Total Balance");
90                 $doc_Statement = _("Statement");
91                 $doc_as_of = _("as of");
92                 $doc_Days = _("Days");
93                 $doc_Over = _("Over");
94         }
95 }
96 ?>