Oro\Bundle\InventoryBundle\Entity\InventoryLevel:
    properties:
        quantity:
            - NotBlank: ~
            - Oro\Bundle\ValidationBundle\Validator\Constraints\Decimal: ~
            # DB column "Quantity" created with precision (20) and scale (10) values
            - Oro\Bundle\EntityExtendBundle\Validator\Constraints\Decimal:
                precision: 20
                scale: 10
        product:
            - NotBlank: ~
        productUnitPrecision:
            - NotBlank: ~

Oro\Bundle\ProductBundle\Entity\Product:
    constraints:
        - Oro\Bundle\InventoryBundle\Validator\Constraints\ProductQuantityToOrderLimit: ~
    properties:
        manageInventory:
            - Oro\Bundle\EntityBundle\Validator\Constraints\RelatedEntityFieldFallbackValueConstraint:
                - Choice: [0, 1, '0', '1']
        highlightLowInventory:
            - Oro\Bundle\EntityBundle\Validator\Constraints\RelatedEntityFieldFallbackValueConstraint:
                - Choice: [0, 1, '0', '1']
        inventoryThreshold:
            - Oro\Bundle\EntityBundle\Validator\Constraints\RelatedEntityFieldFallbackValueConstraint:
                - Oro\Bundle\ValidationBundle\Validator\Constraints\NumericRange:
                    min: -100000000
                    max: 100000000
        lowInventoryThreshold:
            - Oro\Bundle\EntityBundle\Validator\Constraints\RelatedEntityFieldFallbackValueConstraint:
                - Oro\Bundle\ValidationBundle\Validator\Constraints\NumericRange:
                    min: -100000000
                    max: 100000000
        backOrder:
            - Oro\Bundle\EntityBundle\Validator\Constraints\RelatedEntityFieldFallbackValueConstraint:
                - Choice: [0, 1, '0', '1']
        decrementQuantity:
            - Oro\Bundle\EntityBundle\Validator\Constraints\RelatedEntityFieldFallbackValueConstraint:
                - Choice: [0, 1, '0', '1']
        isUpcoming:
            - Oro\Bundle\EntityBundle\Validator\Constraints\RelatedEntityFieldFallbackValueConstraint:
                - Choice: [0, 1, '0', '1']
        minimumQuantityToOrder:
            - Oro\Bundle\EntityBundle\Validator\Constraints\RelatedEntityFieldFallbackValueConstraint:
                - Oro\Bundle\ValidationBundle\Validator\Constraints\NumericRange:
                    min: -100000000
                    max: 100000000
        maximumQuantityToOrder:
            - Oro\Bundle\EntityBundle\Validator\Constraints\RelatedEntityFieldFallbackValueConstraint:
                - Oro\Bundle\ValidationBundle\Validator\Constraints\NumericRange:
                    min: -100000000
                    max: 100000000

Oro\Bundle\ProductBundle\Model\QuickAddRow:
    constraints:
        - Oro\Bundle\InventoryBundle\Validator\Constraints\QuantityToOrder:
              minMessage: 'oro.inventory.quick_add_row.quantity_to_order.min_message'
              maxMessage: 'oro.inventory.quick_add_row.quantity_to_order.max_message'
              groups:
                    - oro_shopping_list_quick_add_processor
                    - oro_shopping_list_to_checkout_quick_add_processor
