Add validation constraint to discount by amount/percent

Created on 17 February 2023, almost 2 years ago
Updated 20 November 2023, about 1 year 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.71.5 2024