Skip to content

Commit

Permalink
- Added additional validation to OrderLineItem that 'fixes' the issue…
Browse files Browse the repository at this point in the history
… of a quantity value below 1
  • Loading branch information
24198 committed Jan 17, 2019
1 parent d090436 commit 5981c65
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Marello\Bundle\OrderBundle\Entity\OrderItem:
- NotBlank: { groups: [api, Default] }
rowTotalExclTax:
- NotBlank: { groups: [api, Default] }
quantity:
- GreaterThanOrEqual: 1
constraints:
- Marello\Bundle\OrderBundle\Validator\Constraints\AvailableInventory:
fields: [quantity, order, product]
Expand Down

0 comments on commit 5981c65

Please sign in to comment.