Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033372
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2016-06-28 14:182016-07-08 13:06
ReporterumartirenaView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityurgentResolutionfixedFixed in VersionRR16Q4
StatusclosedFix in branchFixed in SCM revision154016f60410
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toguilleaer
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0033372: [SERQA 1372] Pay Open Tickets process raises an error if implements an asincronous hook

Description[SERQA 1372] Pay Open Tickets process raises an error if implements an asincronous hook.

This issue happens because the Pay Open Ticket process tries to save in local database the same ticket twice. It happens when there is asynchronous code while saving the tickets.
Steps To ReproduceLog In Web POS:

Open Web Developers tool and execute the following code:

OB.UTIL.HookManager.registerHook('OBPOS_PreOrderSave', function(args, callback){

setTimeout(function(){
OB.UTIL.HookManager.callbackExecutor(args,callback);
}, 15000)

})

Go back to Web POS:

 * Add a product to the a ticket for a Certain Business Partner
 * Click on Layaway this receipt
 * Go to Payments window
 * Click on Layaway
 * Create another ticket.
 * Add a product to the a ticket for a Certain Business Partner
 * Click on Layaway this receipt
 * Go to Payments window
 * Click on Layaway
 * Go to menu and click on Pay Open Tickets
 * Select the two previous layaways
 * Pay the layaways completely
 * Click on Done

Realize that the following error is raise in Console:

3cc22d6…_WebPOS.js:2761 [checkBlocked][no-transaction][hasbeenpaid_is_yes] Wrong write in c_order avoided [40A5909F166510BAC034F947F1EED447][VBS1/0000169] - Caller: https://livebuilds.openbravo.com/retail_pi_pgsql/web/js/gen/3cc22d6f95942f203853ccd5e952ee33_WebPOS.js:32037:18 [^] - callerInfo:
Object.OB.Dal.save (https://livebuilds.openbravo.com/retail_pi_pgsql/web/js/gen/3cc22d6f95942f203853ccd5e952ee33_WebPOS.js:4248:22 [^]);
https://livebuilds.openbravo.com/retail_pi_pgsql/web/js/gen/3cc22d6f95942f203853ccd5e952ee33_WebPOS.js:32037:18; [^]
callbackExecutor (https://livebuilds.openbravo.com/retail_pi_pgsql/web/js/gen/3cc22d6f95942f203853ccd5e952ee33_WebPOS.js:11365:7 [^]);
<anonymous>:4:21; line: https://livebuilds.openbravo.com/retail_pi_pgsql/web/js/gen/3cc22d6f95942f203853ccd5e952ee33_WebPOS.js:4488:22 [^] (*,+)
Proposed SolutionFind patch attached
TagsSER-QA
Attached Filesdiff file icon issue.diff [^] (4,427 bytes) 2016-06-28 17:58 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0088162)
hgbot (developer)
2016-07-02 07:51

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 154016f60410d1665f4f3512ab24b5d63ce8e570
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Sat Jul 02 11:20:36 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/154016f60410d1665f4f3512ab24b5d63ce8e570 [^]

Fixes issue 33372 : Changes in order save to support asynchronous save operation

---
M web/org.openbravo.retail.posterminal/js/data/dataordersave.js
---
(0088163)
hgbot (developer)
2016-07-02 07:51

Repository: tools/automation/pi-mobile
Changeset: 3d244c956baaaedf426115276952ebd2be194473
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Sat Jul 02 11:20:33 2016 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/3d244c956baaaedf426115276952ebd2be194473 [^]

Verifies issue 33372 : Added automated test 'I33372_VerifySaveReceiptWithCustomeHook'

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I33372_VerifySaveReceiptWithCustomeHook.java
---

- Issue History
Date Modified Username Field Change
2016-06-28 14:18 umartirena New Issue
2016-06-28 14:18 umartirena Assigned To => Retail
2016-06-28 14:18 umartirena Resolution time => 1468015200
2016-06-28 14:18 umartirena Triggers an Emergency Pack => No
2016-06-28 14:18 umartirena Tag Attached: SER-QA
2016-06-28 17:58 umartirena File Added: issue.diff
2016-06-28 17:58 umartirena Proposed Solution updated
2016-06-29 14:42 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2016-06-29 14:42 ranjith_qualiantech_com Status new => scheduled
2016-07-02 07:51 hgbot Checkin
2016-07-02 07:51 hgbot Note Added: 0088162
2016-07-02 07:51 hgbot Status scheduled => resolved
2016-07-02 07:51 hgbot Resolution open => fixed
2016-07-02 07:51 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/154016f60410d1665f4f3512ab24b5d63ce8e570 [^]
2016-07-02 07:51 hgbot Checkin
2016-07-02 07:51 hgbot Note Added: 0088163
2016-07-08 13:06 guilleaer Review Assigned To => guilleaer
2016-07-08 13:06 guilleaer Status resolved => closed
2016-07-08 13:06 guilleaer Fixed in Version => RR16Q4


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker