From ddc6a2bd2eb9160b6539e9e13ee33bf3e08efff1 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 4 Feb 2014 15:35:12 +0100 Subject: [PATCH] Supp credit notes should not be shown in allocable list. --- purchasing/includes/db/suppalloc_db.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/purchasing/includes/db/suppalloc_db.inc b/purchasing/includes/db/suppalloc_db.inc index 7a43b56f..59ce2ba1 100644 --- a/purchasing/includes/db/suppalloc_db.inc +++ b/purchasing/includes/db/suppalloc_db.inc @@ -182,7 +182,7 @@ function get_allocatable_to_supp_transactions($supplier_id, $trans_no=null, $typ else { $sql = get_alloc_supp_sql(null, "round(ABS(ov_amount+ov_gst+ov_discount)-alloc,6) > 0 - AND trans.type NOT IN (".implode(',',array(ST_SUPPAYMENT, ST_BANKPAYMENT)).") + AND trans.type NOT IN (".implode(',',array(ST_SUPPAYMENT, ST_BANKPAYMENT, ST_SUPPCREDIT)).") AND trans.supplier_id=".db_escape($supplier_id)); } -- 2.30.2