! -> 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
$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) {
$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) {
$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))
{