d2366c20d6c6192e6216a94bf3e2d9e454a72f44
[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_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_Bank_Account = _("Bank Account");
25          $doc_Please_Quote = _("Please quote Invoice no. when paying. All amounts stated in");
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 == 13)
37                         $this->title = _("DELIVERY NOTE");
38                 else if ($doctype == 9)
39                         $this->title = ($print_as_quote==1 ? _("QUOTE") : _("SALES ORDER"));
40                 else if ($doctype == 10)
41                         $this->title = _("INVOICE");
42                 else
43                         $this->title = _("CREDIT NOTE");
44                 if ($doctype == 8)
45                         $this->headers = array(_("Item Code"), _("Item Description"),
46                                 _("Delivery Date"), _("Quantity"),      _("Unit"), _("Price"), _("Total"));
47                 else
48                         $this->headers = array(_("Item Code"), _("Item Description"),   _("Quantity"),
49                                 _("Unit"), _("Price"), _("Discount %"), _("Total"));
50         }
51         else if ($doctype == 12)
52         {
53                 $this->title = _("STATEMENT");
54                 $this->headers = array(_("Trans Type"), _("#"), _("Date"), _("DueDate"), _("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_Invoice_no = $doctype==13 ? _("Delivery Note No.") : _("Invoice No.");
68         $doc_Delivery_no = "Delivery Note 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 ?>