Fix negative prices
This commit is contained in:
parent
919b9728f5
commit
47dc473163
|
@ -33,7 +33,7 @@ public class PriceUtil {
|
|||
if (NumberUtil.isDouble(part)) {
|
||||
double price = Double.valueOf(part);
|
||||
|
||||
if (price == 0) {
|
||||
if (price <= 0) {
|
||||
return NO_PRICE;
|
||||
} else {
|
||||
return price;
|
||||
|
|
Loading…
Reference in New Issue