! -> Note
$ -> Affected files
+17-Jun-2009 Joe Hunt/Tu Nguyen
+# [0000136] view_po on invoices and credits shows transactions from other suppliers
+$ /purchasing/includes/db/invoice_db.inc
+
16-Jun-2009 Janusz Dobrowolski
! Added error logging to file or syslog.
$ /config.php
// Log file for error/warning messages. Should be set to any location
// writable by www server. When set to empty string logging is switched off.
// Special value 'syslog' can be used for system logger usage (see php manual).
- $error_logfile = dirname(__FILE__).'/tmp/errors.log';
+ $error_logfile = '';
+ //$error_logfile = dirname(__FILE__).'/tmp/errors.log';
$debug = 1;
$show_sql = 0;
$go_debug = 0;
$sql = "SELECT DISTINCT ".TB_PREF."supp_trans.trans_no, ".TB_PREF."supp_trans.type,
ov_amount+ov_discount+ov_gst AS Total,
".TB_PREF."supp_trans.tran_date
- FROM ".TB_PREF."supp_trans, ".TB_PREF."supp_invoice_items, ".TB_PREF."purch_order_details
+ FROM ".TB_PREF."supp_trans, ".TB_PREF."supp_invoice_items, ".TB_PREF."purch_order_details, ".TB_PREF."purch_orders
WHERE ".TB_PREF."supp_invoice_items.supp_trans_no = ".TB_PREF."supp_trans.trans_no
AND ".TB_PREF."supp_invoice_items.po_detail_item_id = ".TB_PREF."purch_order_details.po_detail_item
+ AND ".TB_PREF."purch_orders.supplier_id = ".TB_PREF."supp_trans.supplier_id
AND ".TB_PREF."purch_order_details.order_no = $po_number";
return db_query($sql, "The invoices/credits for the po $po_number could not be retreived");