From: Joe Date: Tue, 4 Feb 2014 14:35:12 +0000 (+0100) Subject: Supp credit notes should not be shown in allocable list. X-Git-Tag: 2.3-final~158 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=ddc6a2bd2eb9160b6539e9e13ee33bf3e08efff1;p=fa-stable.git Supp credit notes should not be shown in allocable list. --- 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)); }