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