Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0035787 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Sessions | major | sometimes | 2017-04-17 11:35 | 2017-04-25 10:15 | |||
Reporter | guillermogil | View Status | public | |||||
Assigned To | jorge-garcia | |||||||
Priority | urgent | Resolution | duplicate | Fixed in Version | RR17Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | jorge-garcia | |||||||
OBNetwork customer | OBPS | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0035787: Under Some circumstances ID property is not sent on Open Till | |||||||
Description | Under Some circumstances ID property is not sent on Open Till. It generates an error on Data Import Entries window. This is the error: org.codehaus.jettison.json.JSONException: JSONObject["id"] not found. at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360) at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487) at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:236) at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:155) at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:87) at org.openbravo.mobile.core.process.MobileImportEntryProcessorRunnable.processEntry(MobileImportEntryProcessorRunnable.java:42) at org.openbravo.retail.sessions.OpenSessionPOSEntryProcessor$OpenSessionPOSRunnable.processEntry(OpenSessionPOSEntryProcessor.java:68) at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.doRunCycle(ImportEntryProcessor.java:369) at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:291) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) This is the json sent: {"messageId":"9798D9DB022FDFE0405A30346B0300AB","data":[{"terminalId":"BB87AAFD4B764E34BDAFE91664C82BB4","bdSessions":[{"code":"AF1C86AE31061A2214002E86D66FDF5E","businessdate":"2017-04-13 00:00:00.000","openedDate":"2017-04-13 10:36:19.616"}],"cashUpReportInformation":{"posterminal":"BB87AAFD4B764E34BDAFE91664C82BB4","posTerminal":"BB87AAFD4B764E34BDAFE91664C82BB4","id":"22DB47A1496F1551409A0AE6B50546E3","isprocessed":"N","isbeingprocessed":"Y","netSales":0,"grossSales":0,"netReturns":0,"grossReturns":0,"totalRetailTransactions":0,"cashPaymentMethodInfo":[{"paymentMethodId":"6A839A463F0C4B08AFAFA4E728E0055A","id":"6D08B86D161C98E10CA574BB3E33CDB4","searchKey":"SIMALI_payment.Alipay","startingCash":0,"totalSales":0,"totalReturns":0,"rate":"1","isocode":"CNY","totalDeposits":0,"totalDrops":0,"paymentmethod_id":"6A839A463F0C4B08AFAFA4E728E0055A"},{"paymentMethodId":"F64D92197DE94BD58DFDFF7B755013B8","id":"2194B1468DF2569E9C908C48399E7DB3","searchKey":"OBPOS_payment.cash","startingCash":0,"totalSales":0,"totalReturns":0,"rate":"1","isocode":"CNY","totalDeposits":0,"totalDrops":0,"paymentmethod_id":"F64D92197DE94BD58DFDFF7B755013B8"},{"paymentMethodId":"278ADF0292EB4B92BF7D87FD0E469EF9","id":"39AA15E5DAB4856721C104A6B75BB9E6","searchKey":"OBPOS_payment.card","startingCash":0,"totalSales":0,"totalReturns":0,"rate":"1","isocode":"CNY","totalDeposits":0,"totalDrops":0,"paymentmethod_id":"278ADF0292EB4B92BF7D87FD0E469EF9"},{"paymentMethodId":"479203D88E9D41ECAB8CDDB1F5746A39","id":"8FB9718CBA89A9DA6E0322F13449E33B","searchKey":"OBPOS_payment.voucher","startingCash":0,"totalSales":0,"totalReturns":0,"rate":"1","isocode":"CNY","totalDeposits":0,"totalDrops":0,"paymentmethod_id":"479203D88E9D41ECAB8CDDB1F5746A39"},{"paymentMethodId":"44078C7280AD481EB769050F0563E9F0","id":"B520231578BF62D65640B48B79DE3428","searchKey":"SIMWEC_payment.Wechat","startingCash":0,"totalSales":0,"totalReturns":0,"rate":"1","isocode":"CNY","totalDeposits":0,"totalDrops":0,"paymentmethod_id":"44078C7280AD481EB769050F0563E9F0"},{"paymentMethodId":"95F8EBDA911D4745B6063D6D77475857","id":"F5790C943BA8162DAA4BEF275ECC0719","searchKey":"DECPM_payment.international_card","startingCash":0,"totalSales":0,"totalReturns":0,"rate":"1","isocode":"CNY","totalDeposits":0,"totalDrops":0,"paymentmethod_id":"95F8EBDA911D4745B6063D6D77475857"},{"paymentMethodId":"E80093548452472DBEEF04160EE44117","id":"4EC468B9E6CA0C126AEAEC5CEFEA6D90","searchKey":"DECPM_payment.offcc","startingCash":0,"totalSales":0,"totalReturns":0,"rate":"1","isocode":"CNY","totalDeposits":0,"totalDrops":0,"paymentmethod_id":"E80093548452472DBEEF04160EE44117"},{"paymentMethodId":"B398FCF72CD04C209CB9DE2A3569836C","id":"FD0E005FA0DD8C45492F3CA237A3C22D","searchKey":"DECPM_payment.giftcard","startingCash":0,"totalSales":0,"totalReturns":0,"rate":"1","isocode":"CNY","totalDeposits":0,"totalDrops":0,"paymentmethod_id":"B398FCF72CD04C209CB9DE2A3569836C"},{"paymentMethodId":"8DDECF7C2AB646529815DA1C690DBD5D","id":"752362B505790840073C91C05F8D4F6F","searchKey":"DECPM_payment.external_commercial_card","startingCash":0,"totalSales":0,"totalReturns":0,"rate":"1","isocode":"CNY","totalDeposits":0,"totalDrops":0,"paymentmethod_id":"8DDECF7C2AB646529815DA1C690DBD5D"},{"paymentMethodId":"5F1A7DF5567D47018F0A5BD54CD7A7C0","id":"26213B73862C1FCCB3672B9FF4DAE470","searchKey":"DECPM_payment.accordcard","startingCash":0,"totalSales":0,"totalReturns":0,"rate":"1","isocode":"CNY","totalDeposits":0,"totalDrops":0,"paymentmethod_id":"5F1A7DF5567D47018F0A5BD54CD7A7C0"}],"cashTaxInfo":[],"cashCloseInfo":[],"cashUpDate":"","creationDate":"2017-04-11T11:11:56.297Z","lastcashupeportdate":"2017-04-13T02:36:19.550Z","userId":"9D0F552DC95248F98BDEA81EF8D2680E","organization":"3C0A63DC61DD4088B544590DEA898367"}}],"client":"E458618056C24D0088568C7F4E7AABD5","organization":"3C0A63DC61DD4088B544590DEA898367","pos":"BB87AAFD4B764E34BDAFE91664C82BB4","terminalName":"700888107","appName":"WebPOS"} | |||||||
Steps To Reproduce | N/A | |||||||
Proposed Solution | Add a Sanity check to generate ID if empty or ensure ID is generated on WebPOS | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0096148) jorge-garcia (viewer) 2017-04-25 10:15 |
Issue duplicated. Backports will be generated in issue 34853 |
![]() |
|||
Date Modified | Username | Field | Change |
2017-04-17 11:35 | guillermogil | New Issue | |
2017-04-17 11:35 | guillermogil | Assigned To | => Retail |
2017-04-17 11:35 | guillermogil | OBNetwork customer | => Yes |
2017-04-17 11:35 | guillermogil | Resolution time | => 1494194400 |
2017-04-17 11:35 | guillermogil | Triggers an Emergency Pack | => No |
2017-04-17 11:36 | guillermogil | Proposed Solution updated | |
2017-04-19 09:58 | jorge-garcia | Assigned To | Retail => jorge-garcia |
2017-04-19 09:59 | jorge-garcia | Status | new => acknowledged |
2017-04-25 10:13 | jorge-garcia | Relationship added | duplicate of 0034853 |
2017-04-25 10:14 | jorge-garcia | Status | acknowledged => scheduled |
2017-04-25 10:15 | jorge-garcia | Review Assigned To | => jorge-garcia |
2017-04-25 10:15 | jorge-garcia | Note Added: 0096148 | |
2017-04-25 10:15 | jorge-garcia | Status | scheduled => closed |
2017-04-25 10:15 | jorge-garcia | Resolution | open => duplicate |
2017-04-25 10:15 | jorge-garcia | Fixed in Version | => RR17Q2 |
Copyright © 2000 - 2009 MantisBT Group |