Changed so Customer's Reference is printed on all sales documents (you can f.i. enter...
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 16 Jun 2008 13:32:37 +0000 (13:32 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 16 Jun 2008 13:32:37 +0000 (13:32 +0000)
CHANGELOG.txt
reporting/includes/doctext.inc
reporting/includes/doctext2.inc
reporting/includes/header2.inc

index 799bc44dc66d57d9aa38c936bf5a59c2a147669f..6dbbad1528a3f0e453dd8713791460ad946e8863 100644 (file)
@@ -19,6 +19,12 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+16-Jun-2008 Joe Hunt
+! Changed so Customer's Reference is printed on all sales documents (you can f.i. enter PO number here).
+$ /reporting/includes/header2.inc
+  /reporting/doctext.inc
+  /reporting/doctext2.inc
+  
 16-Jun-2008 Joe Hunt
 ! Changed the Quantity routines to use the Item Units decimals if any. A lot of files.
 $ /includes/current_user.inc
index d2366c20d6c6192e6216a94bf3e2d9e454a72f44..5753447dd7445bbcf5e63c12610debde7acebf13 100644 (file)
@@ -15,6 +15,7 @@ if (isset($header2type))
        $doc_Your_VAT_no = _("Your VAT no.");
        $doc_Our_VAT_no = _("Our VAT No.");
        $doc_Payment_Terms = _("Payment Terms");
+       $doc_Customers_Ref = _("Customers Reference:");
        $doc_Our_Order_No = _("Our Order No");
        $doc_Domicile = _("Domicile");
        if($doctype == 13) {
index 6a7078f100fb420b0b6f4ef29a3afb05296dcfb8..0bbe57e71559557c9e1e320f5b4404dbc6513552 100644 (file)
@@ -15,6 +15,7 @@ if (isset($header2type))
        $doc_Your_VAT_no = "Your VAT No.";
        $doc_Our_VAT_no = "Our VAT No.";
        $doc_Payment_Terms = "Payment Terms";
+       $doc_Customers_Ref = "Customers Reference:";
        $doc_Our_Order_No = "Our Order No";
        $doc_Domicile = "Domicile";
        if($doctype == 13) {
index 5fdf36f2910d33a076fd6d25e52aaa1386d34c6a..3da42fcc33aabc76732a4d7ef027b96077750f19 100644 (file)
                        $this->Font();
                        $this->fontSize -= 4;
                }
-               if ($doctype == 8) // PO
+               if ($doctype == 8 || $doctype == 9) // PO or SO
                        $this->Text($mcol, $myrow['order_no'], $mcol + 90);
-               else if ($doctype == 9) // SO
-                       $this->Text($mcol, $myrow['order_no'] ." ".$myrow['customer_ref'], $mcol + 90);
                else if (isset($myrow['trans_no']) && isset($myrow['reference'])) // INV/CRE/STA
                {
                        if ($print_invoice_no == 1)
                $this->Text($mcol, $doc_Our_Order_No . ":", $mcol2);
                if (isset($myrow['order_']))
                        $this->Text($mcol2, $myrow['order_']);
-
+               // 2008-06-16. Added customer's reference
+               $this->NewLine();
+               $this->Text($ccol, $doc_Customers_Ref, $ccol2);
+               if ($sales_order != NULL)
+                       $this->Text($ccol2, $sales_order["customer_ref"], $mcol);
                $locale = $path_to_root . "lang/" . $_SESSION['language']->code . "/locale.inc";
                if (file_exists($locale))
                {