Some errors in header3() in pdf_report.inc..
! -> Note
$ -> Affected files
+21-Dec-2009 Joe Hunt
+# Function money_format function doesn't exist in OS Win. Fix in current_user.inc
+ Some errors in header3() in pdf_report.inc..
+$ /includes/current_user.inc
+ /reporting/includes/pdf_report.inc
+
18-Dec-2009 Joe Hunt
# Allowing a quantity of 0 in a PO item line when modifying caused strange result.
Fixed depending on the decimals in the stock item to not allow less than minimum.
}
return number_format2($number, $dec);
}
+// function money_format doesn't exist in OS Win.
+if (!function_exists('money_format'))
+{
+ function money_format($format, $number)
+ {
+ return price_format($number);
+ }
+}
+
// 2008-06-15. Added extra parameter $stock_id and reference for $dec
//--------------------------------------------------------------------
function qty_format($number, $stock_id=null, &$dec) {
$str = _("Report Period") . ':';
$this->Text($this->leftMargin, $str, $headerFieldCol);
$str = '';
- if ($this->params[1]['from'] != '')
+ if (isset($this->params[1]['from']) && $this->params[1]['from'] != '')
$str = $this->params[1]['from'] . ' - ';
$str .= $this->params[1]['to'];
$this->Text($headerFieldCol, $str, $companyCol);