Add validation constraint to discount by amount/percent

Created on 17 February 2023, over 1 year ago
Updated 20 November 2023, 7 months ago

Problem/Motivation

It happened already that the user added the amount value into the percentage field causing all of it to fail with negative pricing
Similar can happen if the amount is higher than order item unit price.

Proposed resolution

The objective of this issue is to add validation constraints to the corresponding field/entity in order to avoid the situation where the total price is negative.

πŸ“Œ Task
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Oleksandr Yushchenko

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024