-
-
Notifications
You must be signed in to change notification settings - Fork 597
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
[IMP] Show unit price when qty is not 1 #56
Conversation
|
||
module.PosBaseWidget.include({ | ||
format_pr: function(amount, precision) { | ||
console.log('format_pr: amount = ' + amount) |
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.
please remove console.log.
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.
Sorry, in a moment. I'm waiting to finish runbot to see if any other fix is required.
Tested in runbot 👍 |
really useful 👍 |
Tested in runbot 👍 |
@legalsylvain could make last review? I think it could be merged and change is not critical. |
3a3f790
to
e9ac0d5
Compare
Version increment, squash and rebase done. |
👍 |
[IMP] Show unit price when qty is not 1
When qty is not 1 (for example, 2, 3 or 0.56) POS ticket template (PosTicket) is not indicating unit price (but XmlReceipt template, used when proxy configured, implement this feature).
This is specially useful in this addon because unit price would not be product list_price because price list are applied even taking care customer.
So, with this improvement, if qty is equal to 1, unit price is not shown (as now occurs) but if qty is not equal to 1, then unit price is shown.
Please, @ah-taktik and @pablocm-aserti review these changes and do your comments, thanks.