Prestashop: Add a new discount with invalid reduction_percent => there is no alert - Order Back office

Created on 16 Oct 2018  路  4Comments  路  Source: PrestaShop/PrestaShop

Describe the bug

In the BO => Orders => Order details => we try to add a new discount with invalid reduction_percent 300% => a green alert "Successful update." is displayed => but there is no discount added.
The green alert is wrong, we should have a red alert
image

To Reproduce
Steps to reproduce the behavior:

  1. Go to BO => Orders
  2. Edit any order
  3. Scroll down to add a new discount ( type => percent / Value => 300%)
  4. Click Add => "Successful update" is displayed => there is no discount added.

Screenshots
https://drive.google.com/file/d/1Alr7eqn8hNxOcBBlNXNTgdZ-KwerkV2z/view

Additionnal information
PrestaShop version: 1.7.4.3
PHP version: 7.1

1.7.4.3 1.7.6.0 BO Bug Discounts Fixed Minor Order

All 4 comments

Hello @khouloudbelguith could you please test this issue and see if it is fixed on 177x ?
Thanks !

Hi @colinegin,

It is fixed when we add a new discount >100%
https://drive.google.com/file/d/1igte2JACrtZKEiJGvO4NR2GGJPpwtPdG/view
image

But an exception detected when we add a new discount = -10%
image

image

Reproduced with 177x branch, PS1.7.6.3 and PS1.7.5.2

Related to #17747

Thanks!

Alright so maybe we can close this issue and just have #17747 open?

@colinegin, alright!
I will close this issue and update the new issue.

Thanks!

Was this page helpful?
0 / 5 - 0 ratings