FIX: variable casting from mysql/postgres was causing 'remaining' value to be a string, causing the wrong logic to fire.
FIX: variable casting from mysql/postgres was causing 'remaining' value to be a string, causing the wrong logic to fire.

IgorNadj/silverstripe-shop-discount,markguinn/silverstripe-shop-discount,markguinn/silverstripe-shop-discount,IgorNadj/silverstripe-shop-discount,burnbright/silverstripe-shop-discount,burnbright/silverstripe-shop-discount