-
-
Notifications
You must be signed in to change notification settings - Fork 653
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
[FIX] [16.0] stock_customer_deposit: Allow to add more deposits of the same product #1775
base: 16.0
Are you sure you want to change the base?
[FIX] [16.0] stock_customer_deposit: Allow to add more deposits of the same product #1775
Conversation
Hi @rafaelbn, @EmilioPascual, |
d82e915
to
90daeb5
Compare
90daeb5
to
82d7e33
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.
Functional review.
LGTM, thank you @Shide
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.
Thank you @Shide ! 😄
I looks great! and works great ❤️ !
Just please I'm missing and improvement of the readme (the readme should explain everything that the code does 😃):
The module lets you add more stock deposits for a product without needing to fully consume the previous one. This simplifies managing inventory for clients with fluctuating needs.
- Improve README
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.
- stock_customer_deposit: Deposit Icon are hidded for salesman (video 2:00 min)
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.
Hey! I found a dangerous BUG!
This video shows an issue with customer deposits when selling 250 units of 'product' for a new deposit when there is already one then the moodule apply 100% discount to the new deposit! And it should be paid by the client. The module wrongly applies a 100% discount, making the product appear free.
- [BUG] stock_customer_deposit: Incorrect Discount Applied to New Sales Deposits (video 1 minute)
Alway with 💙
…xceeded sale order
@rafaelbn All requests attended. Done in separate commits because are thing that doesn't are related to the subject of this PR. |
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.
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.
@Shide it's still buggy 😇
- [BUG] stock_customer_deposit: Incorrect Discount Applied to New Sales Deposits
Rev2: https://www.loom.com/share/4f76f39ef4074b738dd9acb04551143b?sid=8e017630-fee5-4c88-92b0-c1e19231e2cc
Only this detail, the rest is amazing! ❤️
Allows to add more deposits of the same product even if the customer already have a deposit.
Major refactoring in:
sale_order._check_can_customer_deposit
to perform the check all at once + simplifiedsale_order._action_confirm
stock_move._action_assign
to split casuistic and have a better control over the moves.float_compare
when it's necessaryMT-7979 @moduon @EmilioPascual @rafaelbn @yajo @Gelojr @fcvalgar please review if you want :)