Open brainOut opened 5 years ago
This PR prevents duplication of item in the order creation process.
If an order has multiple times the same SKU, it will lead to an error on packing slip generation, which will contain only one line of this SKU.
To prevent this behavior, each time form-change is triggered, we check that there is no duplicates, else, we alert the user.
This PR prevents duplication of item in the order creation process.
If an order has multiple times the same SKU, it will lead to an error on packing slip generation, which will contain only one line of this SKU.
To prevent this behavior, each time form-change is triggered, we check that there is no duplicates, else, we alert the user.