Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035364Retail ModulesWeb POSpublic2017-02-27 12:042017-03-24 11:01
adrianromero 
mario_castello 
urgentmajorhave not tried
closedfixed 
5
 
RR17Q2 
marvintm
No
0035364: [SER-QA 2472] Columns startingcash, totalsales, totalreturns, amounttokeep must by not null and default 0
The columns startingcash, totalsales, totalreturns, amounttokeep of obpos_paymentmethodcashup must be defined at database level and openbravo level as not null and with default 0.

Also, in order to fix posible wrong data, the following sql sentences must be executed:

update obpos_paymentmethodcashup set amounttokeep = 0 where amounttokeep is null;
update obpos_paymentmethodcashup set startingcash = 0 where startingcash is null;
update obpos_paymentmethodcashup set totalsales = 0 where totalsales is null;
update obpos_paymentmethodcashup set totalreturns = 0 where totalreturns is null;
N/A
SER-QA
related to defect 0035472 closed mario_castello API Change: Columns startingcash, totalsales, totalreturns, amounttokeep must by not null and default 0 
patch 7875.patch (5,090) 2017-02-28 17:29
https://issues.openbravo.com/file_download.php?file_id=10516&type=bug
patch modulescript35364.patch (4,816) 2017-03-09 21:29
https://issues.openbravo.com/file_download.php?file_id=10549&type=bug
Issue History
2017-02-27 12:04adrianromeroNew Issue
2017-02-27 12:04adrianromeroAssigned To => Retail
2017-02-27 12:04adrianromeroResolution time => 1489359600
2017-02-27 12:04adrianromeroTriggers an Emergency Pack => No
2017-02-27 12:05adrianromeroTag Attached: SER-QA
2017-02-28 16:36mario_castelloAssigned ToRetail => mario_castello
2017-02-28 17:03mario_castelloStatusnew => acknowledged
2017-02-28 17:29mario_castelloFile Added: 7875.patch
2017-03-09 17:37mario_castelloRelationship addedrelated to 0035472
2017-03-09 17:37mario_castelloStatusacknowledged => scheduled
2017-03-09 21:29mario_castelloFile Added: modulescript35364.patch
2017-03-13 22:50hgbotCheckin
2017-03-13 22:50hgbotNote Added: 0094985
2017-03-13 22:50hgbotStatusscheduled => resolved
2017-03-13 22:50hgbotResolutionopen => fixed
2017-03-13 22:50hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d3e1d00c844d3c91f1f5ea548c188dd8a01e99e6 [^]
2017-03-14 00:33hgbotCheckin
2017-03-14 00:33hgbotNote Added: 0094987
2017-03-16 21:11hgbotCheckin
2017-03-16 21:11hgbotNote Added: 0095347
2017-03-16 21:12mario_castelloNote Edited: 0095347bug_revision_view_page.php?bugnote_id=0095347#r14842
2017-03-17 12:53marvintmNote Added: 0095377
2017-03-17 12:53marvintmStatusresolved => new
2017-03-17 12:53marvintmResolutionfixed => open
2017-03-20 15:53mario_castelloStatusnew => scheduled
2017-03-21 15:14hgbotCheckin
2017-03-21 15:14hgbotNote Added: 0095473
2017-03-21 15:14hgbotStatusscheduled => resolved
2017-03-21 15:14hgbotResolutionopen => fixed
2017-03-21 15:14hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d3e1d00c844d3c91f1f5ea548c188dd8a01e99e6 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d88634bec142b4c5fc0ef30065ad37d043061e66 [^]
2017-03-24 11:01marvintmReview Assigned To => marvintm
2017-03-24 11:01marvintmStatusresolved => closed
2017-03-24 11:01marvintmFixed in Version => RR17Q2

Notes
(0094985)
hgbot   
2017-03-13 22:50   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d3e1d00c844d3c91f1f5ea548c188dd8a01e99e6
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Wed Mar 08 14:42:31 2017 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d3e1d00c844d3c91f1f5ea548c188dd8a01e99e6 [^]

Fixed issue 0035364: [SER-QA 2472] Columns startingcash, totalsales, totalreturns, amounttokeep must by not null and default 0

- Set default value 0 for columns startingcash, totalsales, totalreturns, amounttokeep

---
M src-db/database/model/tables/OBPOS_PAYMENTMETHODCASHUP.xml
M src-db/database/sourcedata/AD_COLUMN.xml
---
(0094987)
hgbot   
2017-03-14 00:33   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: eda11b75aa26e1776f5d6759eb47e432e5e465b1
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Thu Mar 09 11:25:32 2017 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/eda11b75aa26e1776f5d6759eb47e432e5e465b1 [^]

Related to issue 35364: Added new modulescript to fix data

---
A build/classes/org/openbravo/retail/posterminal/modulescript/FixDataIssue35364.class
A src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixDataIssue35364.java
---
(0095347)
hgbot   
2017-03-16 21:11   
(edited on: 2017-03-16 21:12)
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 145f4f1e3b544f844032c6128461b344e16e3987
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Wed Mar 15 07:56:56 2017 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/145f4f1e3b544f844032c6128461b344e16e3987 [^]

Verifies issue 35364: Fixed module script FixDataIssue35364

- Refactor modulescript class to fix problems in oracle

---
M src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixDataIssue35364.java
A build/classes/org/openbravo/retail/posterminal/modulescript/FixDataIssue35364.class
---

(0095377)
marvintm   
2017-03-17 12:53   
The fix itself is correct.

The modulescript queries are also correct, but they should be moved to an xsql file, so that there is no risk of leaking open prepared statements. Alternatively, the prepared statements could be manually closed, but it would be better if xsql is used, like in other modulescripts.
(0095473)
hgbot   
2017-03-21 15:14   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d88634bec142b4c5fc0ef30065ad37d043061e66
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Fri Mar 17 09:17:34 2017 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d88634bec142b4c5fc0ef30065ad37d043061e66 [^]

Fixed issue 35364: Refactor modulescript FixDataIssue35364

- Moved the queries to an xsql file

---
M build/classes/org/openbravo/retail/posterminal/modulescript/FixDataIssue35364.class
M src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixDataIssue35364.java
A build/classes/org/openbravo/retail/posterminal/modulescript/FixDataIssue35364Data.class
A src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/FixDataIssue35364_Data.xsql
---