Foram Katharotiya (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-1102873-fka into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #1102873 in OpenERP Addons: "PoS Receipt show no qty below 1"
https://bugs.launchpad.net/openobject-addons/+bug/1102873
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1102873-fka/+merge/146571
Hello,
Fix the issue of selling any product qty 0.5, the pos-screen shwos 0.5kg at
0.9€ / kg & The PoS Receipt shows a qty of 1. If the qty is below 0.5, the pos
receipt shows 0.
Thanks,
FKA
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1102873-fka/+merge/146571
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-1102873-fka.
=== modified file 'point_of_sale/static/src/js/screens.js'
--- point_of_sale/static/src/js/screens.js 2013-01-14 15:25:33 +0000
+++ point_of_sale/static/src/js/screens.js 2013-02-05 07:16:23 +0000
@@ -963,7 +963,7 @@
var currentOrder = this.pos.get('selectedOrder');
var paidTotal = currentOrder.getPaidTotal();
var dueTotal = currentOrder.getTotal();
- var remaining = dueTotal > paidTotal ? dueTotal - paidTotal : 0;
+ var remaining = dueTotal > paidTotal ? dueTotal.toFixed(2) - paidTotal.toFixed(2) : 0;
var change = paidTotal > dueTotal ? paidTotal - dueTotal : 0;
this.$('#payment-due-total').html(dueTotal.toFixed(2));
=== modified file 'point_of_sale/static/src/xml/pos.xml'
--- point_of_sale/static/src/xml/pos.xml 2012-12-06 15:38:56 +0000
+++ point_of_sale/static/src/xml/pos.xml 2013-02-05 07:16:23 +0000
@@ -581,7 +581,7 @@
</t>
</td>
<td class="pos-right-align">
- <t t-esc="order.get_quantity().toFixed(0)"/>
+ <t t-esc="order.get_quantity().toFixed(2)"/>
</td>
<td class="pos-right-align">
<t t-esc="widget.format_currency(order.get_price() * (1 - order.get_discount()/100) * order.get_quantity().toFixed(2))"/>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp