New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Product management and specific prices new rules in Order #20145
Product management and specific prices new rules in Order #20145
Conversation
Travis is 🔴 for integration tests :
|
a3351d9
to
b3b25a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Maybe add a test for adding the same product but a different combination?
@atomiix sorry this PR is a work in progress, I should have added the label 😅
|
40aa632
to
0a161b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it's still in WIP but I commented a few things
Also you managed the js for add product, but don't forget to do the same (confirm modal + udpate prices) for product edition 😉
admin-dev/themes/new-theme/js/pages/order/view/order-product-add.js
Outdated
Show resolved
Hide resolved
admin-dev/themes/new-theme/js/pages/order/view/order-product-edit.js
Outdated
Show resolved
Hide resolved
src/Adapter/Order/CommandHandler/UpdateProductInOrderHandler.php
Outdated
Show resolved
Hide resolved
src/PrestaShopBundle/Controller/Admin/Sell/Order/OrderController.php
Outdated
Show resolved
Hide resolved
src/PrestaShopBundle/Resources/config/routing/admin/sell/orders/orders.yml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some new comments for things to be finished ^^
admin-dev/themes/new-theme/js/pages/order/view/order-product-edit.js
Outdated
Show resolved
Hide resolved
src/Adapter/Order/CommandHandler/UpdateProductInOrderHandler.php
Outdated
Show resolved
Hide resolved
src/Adapter/Order/CommandHandler/UpdateProductInOrderHandler.php
Outdated
Show resolved
Hide resolved
ea173cc
to
c5bf46b
Compare
Hi @khouloudbelguith |
8ac2a45
cf16a65
to
8ac2a45
Compare
I just fixed the bug it's ok now, actually the price was only checked when adding a product to a new invoice not to an existing one.. |
Hi @jolelievre, I found this issue following these steps:
At this time, if you click Update => the right alert is displayed. A related issue following these steps:
Thanks! |
…l labels are managed in the edit invoice select
6c2d698
8ac2a45
to
6c2d698
Compare
QA OK without required approvals !? |
- duplicate products are not allowed any more in an Order unless they are assigned to different invoices
- each product has one single price even if it has duplicates among invoices (all invoices are updated)
- some additional popup are displayed to prevent the user when he is about to change several products prices at once
- when adding a product the preset values for prices must match the specific price if present (#19490)
This change is