Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039479Retail ModulesWeb POSpublic2018-10-18 13:032018-11-13 07:42
Leyre 
ranjith_qualiantech_com 
urgentmajoralways
closedfixed 
5
 
RR19Q1 
marvintm
No
0039479: Incorrect calculation of "net" field.
Incorrect calculation of "net" field.
POS:

1. Generate a new receipt:
   1.1. Insert the product "Wilderness wash 100 ml" = 3.9€
   1.2 Change the price to 3000€
   1.3 Return the line.
   1.4 Insert 12 units of the product "All mountain ski board Cham" = 245.5 € x 12 = 2946 €
   1.5 Insert the product "Battery charger" = 32.50€
   1.6 Change the price to 54€.

*** Verify that the total price is -3000 + 2946 + 54 = 0€

2. Finish the operation

BACKEND:

1. Open "Data Import Entries" window.

2. Select the register of the previous operation

3. Look at the JSON info that the "net" field = -1.0658141036401503E-13 instead of 0.
No tags attached.
Issue History
2018-10-18 13:03LeyreNew Issue
2018-10-18 13:03LeyreAssigned To => Retail
2018-10-18 13:03LeyreResolution time => 1541631600
2018-10-18 13:03LeyreTriggers an Emergency Pack => No
2018-10-19 13:18ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2018-10-25 08:07ranjith_qualiantech_comStatusnew => scheduled
2018-10-25 09:12hgbotCheckin
2018-10-25 09:12hgbotNote Added: 0107562
2018-10-25 09:12hgbotStatusscheduled => resolved
2018-10-25 09:12hgbotResolutionopen => fixed
2018-10-25 09:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0b491f2d2a66cd90fd8ee359e2b52621a094bbb6 [^]
2018-11-08 11:04marvintmReview Assigned To => marvintm
2018-11-08 11:04marvintmNote Added: 0107797
2018-11-08 11:04marvintmStatusresolved => closed
2018-11-08 11:04marvintmFixed in Version => RR19Q1
2018-11-13 07:42hgbotCheckin
2018-11-13 07:42hgbotNote Added: 0107867

Notes
(0107562)
hgbot   
2018-10-25 09:12   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 0b491f2d2a66cd90fd8ee359e2b52621a094bbb6
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Oct 25 12:42:29 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0b491f2d2a66cd90fd8ee359e2b52621a094bbb6 [^]

Fixed issue 39479 : Changes in ordertax net calculation

* replaced addition with OB.DEC.add

---
M web/org.openbravo.retail.posterminal/js/data/dataordertaxes.js
---
(0107797)
marvintm   
2018-11-08 11:04   
Automated test will be added later
(0107867)
hgbot   
2018-11-13 07:42   
Repository: tools/automation/pi-mobile
Changeset: 943058f88f650b4d8658cdb0f57ae08c236f96a3
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Nov 13 12:12:17 2018 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/943058f88f650b4d8658cdb0f57ae08c236f96a3 [^]

Verifies issue 39479 : Added Automated Test 'I39479_VerifyTaxWithZeroTotal'

---
M src-test/org/openbravo/test/mobile/retail/pack/database/WebPOSDatabaseHelper.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I39479_VerifyTaxWithZeroTotal.java
---