Supp credit notes should not be shown in allocable list.
authorJoe <unknown>
Tue, 4 Feb 2014 14:35:12 +0000 (15:35 +0100)
committerJoe <unknown>
Tue, 4 Feb 2014 14:35:12 +0000 (15:35 +0100)
purchasing/includes/db/suppalloc_db.inc

index 7a43b56fcbad560a30a0b7104dc26b84b820cb68..59ce2ba14785a4114c6209ace59aeddd2e18d59a 100644 (file)
@@ -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));
        }