I've changed the way base_type was defined by using the $amount field that was already defined before and made it use the float value to check below 0, so that small values like 0.01 also work. Signed-off-by: Yannick <yannickdg99@gmail.com>