fix if order amount 0
This commit is contained in:
@@ -483,7 +483,7 @@ func (s *OrderServiceImpl) validateCreatePaymentRequest(req *models.CreatePaymen
|
||||
return fmt.Errorf("order item ID is required for payment item %d", i+1)
|
||||
}
|
||||
|
||||
if item.Amount <= 0 {
|
||||
if item.Amount < 0 {
|
||||
return fmt.Errorf("payment item amount must be greater than zero for item %d", i+1)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user