Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032213Retail ModulesWeb POSpublic2016-02-11 18:412016-02-16 14:59
adrianromero 
mtaal 
urgentmajoralways
closedfixed 
5
pi 
RR16Q2 
mtaal
No
0032213: [HGVOL] Taxes cannot be calculated if the default business partner location is modified in HGVOL
In HGVOL mode with the store with a default customer that has several addresses. If the default customer address is modified then any terminal of the store cannot calculate taxes until the local websql database is deleted manually in the chrome configuration options.
1.- In the ERP set the HGVOL preferences. "Enable remote for ..." to "Y"
2.- In the ERP create a customer with several addresses and configure an store with that customer and one of the addresses.
3.- If needed clean the web browser data and enter in a terminal of that store. Verify the default customer and address appears in the ticket
4.- Add a product to the ticket and verify taxes are properly calculated.
5.- Delete the ticket.
6.- In the ERP, In the store, select a different default address and keep the same default customer
7.- In the terminal, reload the page or logout and login. Verify the new default address appears in the ticket.
8.- Add a product to the ticket and verify that a message appears saying that taxes cannot be calculated and the line is removed.
9.- Open the developer tools and in Resources -> WebSQL -> table c_bpartner_location, the address that appears is the first address configured, not the current one. This is the reason why taxes cannot be calculated. (See attached image).
No tags attached.
png Captura de pantalla de 2016-02-11 18:09:49.png (160,489) 2016-02-11 18:41
https://issues.openbravo.com/file_download.php?file_id=9056&type=bug
png
Issue History
2016-02-11 18:41adrianromeroNew Issue
2016-02-11 18:41adrianromeroAssigned To => mtaal
2016-02-11 18:41adrianromeroResolution time => 1455750000
2016-02-11 18:41adrianromeroTriggers an Emergency Pack => No
2016-02-11 18:41adrianromeroFile Added: Captura de pantalla de 2016-02-11 18:09:49.png
2016-02-15 11:47OrekariaSummaryTaxes cannot be calculated if the default business partner location is modified in HGVOL => [HGVOL] Taxes cannot be calculated if the default business partner location is modified in HGVOL
2016-02-15 11:49OrekariaStatusnew => scheduled
2016-02-16 09:37hgbotCheckin
2016-02-16 09:37hgbotNote Added: 0084227
2016-02-16 09:37hgbotStatusscheduled => resolved
2016-02-16 09:37hgbotResolutionopen => fixed
2016-02-16 09:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/24fbef0652fc016823f61e81120e8edbbba47273 [^]
2016-02-16 09:39hgbotCheckin
2016-02-16 09:39hgbotNote Added: 0084228
2016-02-16 09:39hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/24fbef0652fc016823f61e81120e8edbbba47273 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4ff7291fd74f4b234539f5f36123c6b8d7a214b9 [^]
2016-02-16 09:40hgbotCheckin
2016-02-16 09:40hgbotNote Added: 0084229
2016-02-16 11:19migueldejuanaReview Assigned To => mtaal
2016-02-16 14:59mtaalNote Added: 0084255
2016-02-16 14:59mtaalStatusresolved => closed
2016-02-16 14:59mtaalFixed in Version => RR16Q2

Notes
(0084227)
hgbot   
2016-02-16 09:37   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 24fbef0652fc016823f61e81120e8edbbba47273
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Mon Feb 15 16:51:52 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/24fbef0652fc016823f61e81120e8edbbba47273 [^]

Fixed issue 0032213: [HGVOL] Taxes cannot be calculated if the default business partner location is modified in HGVOL

- Add removeAllTemporally method. Method to remove all entries of a table.

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
---
(0084228)
hgbot   
2016-02-16 09:39   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 4ff7291fd74f4b234539f5f36123c6b8d7a214b9
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Mon Feb 15 16:50:45 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4ff7291fd74f4b234539f5f36123c6b8d7a214b9 [^]

Fixed issue 0032213: [HGVOL] Taxes cannot be calculated if the default business partner location is modified in HGVOL

- Clean bp related tables when creating the first order

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0084229)
hgbot   
2016-02-16 09:40   
Repository: tools/automation/pi-mobile
Changeset: 9c9cc0de4d9708d51f48e80b1eaa375ce0ef8691
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Mon Feb 15 16:43:27 2016 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/9c9cc0de4d9708d51f48e80b1eaa375ce0ef8691 [^]

Related to issue 0032213: [HGVOL] Taxes cannot be calculated if the default business partner location is modified in HGVOL

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/highvolume/I32213_ChangeDefaultCustomer.java
---
(0084255)
mtaal   
2016-02-16 14:59   
reviewed and tested