Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032754Retail ModulesWeb POSpublic2016-04-21 16:102016-05-06 11:04
aaroncalero 
ranjith_qualiantech_com 
normalmajorhave not tried
closedfixed 
5
 
RR16Q3 
marvintm
No
0032754: [SERQA 947] Wrong error logged in Data Import Entries window for several types of data
For several types of data (e.g. Void Layayway, Reject Quotations) if there is an error while processing the import entry, the following error is logged:
"org.codehaus.jettison.json.JSONException: JSONObject["id"] not found"
instead of the real error.
Capture the json sent to the ProcessVoidLayaway process and modify it so an error is generated (e.g. change the id of the order).
Let the import entry be processed.
It will fail, in this case the order retrieved from the database would be null because it doesn't exist, and this should raise a null pointer exception and be stored on the Errors While importing POS Data window. However while trying to find if the error is a duplicates entry being processed, it fails because the record doesn't have an id and the entry remains in Data Import Entries in error status.
If the import entry doesn't have an "id", it should not check for duplicated records.
SER-QA
Issue History
2016-04-21 16:10aaroncaleroNew Issue
2016-04-21 16:10aaroncaleroAssigned To => Retail
2016-04-21 16:10aaroncaleroResolution time => 1462399200
2016-04-21 16:10aaroncaleroTriggers an Emergency Pack => No
2016-04-21 16:14aaroncaleroSummaryWrong error logged in Data Import Entries window for several types of data => [SERQA 947] Wrong error logged in Data Import Entries window for several types of data
2016-04-21 16:14aaroncaleroTag Attached: SER-QA
2016-04-21 16:45OrekariaStatusnew => acknowledged
2016-04-26 12:16ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2016-04-26 12:16ranjith_qualiantech_comStatusacknowledged => scheduled
2016-04-29 12:03hgbotCheckin
2016-04-29 12:03hgbotNote Added: 0086074
2016-04-29 12:03hgbotStatusscheduled => resolved
2016-04-29 12:03hgbotResolutionopen => fixed
2016-04-29 12:03hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d8d09cfa2213e8b2449e69365d7a5cfd0836f540 [^]
2016-05-06 11:04marvintmReview Assigned To => marvintm
2016-05-06 11:04marvintmStatusresolved => closed
2016-05-06 11:04marvintmFixed in Version => RR16Q3

Notes
(0086074)
hgbot   
2016-04-29 12:03   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d8d09cfa2213e8b2449e69365d7a5cfd0836f540
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Apr 29 15:32:25 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d8d09cfa2213e8b2449e69365d7a5cfd0836f540 [^]

Fixes issue 32754 : Adding id attribute to Void layaway and Quotation reject process

"id" attribute was missing, if error occurs in data synchronization. So "id" attribute added to the VoidLayaway and RejectQuotation Processes

---
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---