marellocommerce / marello

Marello
Other
52 stars 18 forks source link

prevent to add multiple time the same SKU in order #50

Open brainOut opened 5 years ago

brainOut commented 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.

image