! -> Note
$ -> Affected files
+20-Mar-2010 Joe Hunt/RodW
+# [0000215} Wrong text in deliver to and not printing it.
+$ /reporting/includes/doctext.inc
+ /reporting/includes/doctext2.inc
+ /reporting/header2.inc
+
15-Mar-2010 Janusz Dobrowolski
# Missing check for customer/bramch selected ([0000216])
$ /sales/sales_order_entry.php
if ($doctype == ST_PURCHORDER || $doctype == ST_SUPPAYMENT) // Purchase Order
{
$doc_Charge_To = _("Order To");
- $doc_Delivered_To = _("Charge To");
+ if ($doctype == ST_PURCHORDER)
+ $doc_Delivered_To = _("Deliver To");
+ else
+ $doc_Delivered_To = _("Charge To");
}
else
{
if ($doctype == ST_PURCHORDER || $doctype == ST_SUPPAYMENT) // Purchase Order
{
$doc_Charge_To = "Order To";
- $doc_Delivered_To = "Charge To";
+ if ($doctype == ST_PURCHORDER)
+ $doc_Delivered_To = "Deliver To";
+ else
+ $doc_Delivered_To = "Charge To";
}
else
{
if ($sales_order != NULL)
{
$this->row = $temp;
- if ($doctype == ST_PURCHORDER)
+ if ($doctype == ST_PURCHORDER) // comment out the next line if you don't want to print company name
$this->Text($mcol, $this->company['coy_name']);
elseif ($doctype != ST_SUPPAYMENT && isset($sales_order['deliver_to']))
$this->Text($mcol, $sales_order['deliver_to']);
$this->NewLine();
- if ($doctype != ST_SUPPAYMENT && isset($sales_order['deliver_to']))
+ if ($doctype != ST_SUPPAYMENT && isset($sales_order['delivery_address']))
$this->TextWrapLines($mcol, $this->rightMargin - $mcol, $sales_order['delivery_address']);
}
$this->row = $iline2 - $this->lineHeight - 1;