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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0052191
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Return Receiptmajoralways2023-04-20 19:202023-04-26 07:44
ReportersofidossantView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityhighResolutionfixedFixed in VersionRR23Q3
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Merge Request Statusapproved
Review Assigned To
OBNetwork customerOBPS
Support ticket62709
Regression levelPre packaging ( pi )
Regression date2023-03-20
Regression introduced in releaseRR23Q1
Regression introduced by commithttps://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/88694b5b41093f5fdc824cafe373a351923fed3c [^]
Triggers an Emergency PackNo
Summary

0052191: EWI org.codehaus.jettison.json.JSONException: JSONObject["deletedLines"] is not a JSONArray.

DescriptionWhen I open a verify return (from cross store) and delete the lines, and continue as an order.
When I pay it, the ewi is generated.

org.codehaus.jettison.json.JSONException: JSONObject["deletedLines"] is not a JSONArray.
    at org.codehaus.jettison.json.JSONObject.getJSONArray(JSONObject.java:440)
    at org.openbravo.retail.productonthefly.hooks.PreOrderLoaderOTFHook.saveProductOnTheFlyProducts(PreOrderLoaderOTFHook.java:54)
    at org.openbravo.retail.productonthefly.hooks.PreOrderLoaderOTFHook.exec(PreOrderLoaderOTFHook.java:44)
    at org.openbravo.retail.productonthefly.hooks.PreOrderLoaderOTFHook$Proxy$_$$_WeldClientProxy.exec(Unknown Source)
    at org.openbravo.retail.posterminal.OrderLoader.executeOrderLoaderPreProcessHook(OrderLoader.java:883)
    at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:307)
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:214)
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:165)
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:97)
    at org.openbravo.mobile.core.process.MobileImportEntryProcessorRunnable.processEntry(MobileImportEntryProcessorRunnable.java:57)
    at org.openbravo.retail.posterminal.importprocess.OrderImportEntryProcessor$OrderLoaderRunnable.processEntry(OrderImportEntryProcessor.java:64)
    at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.doRunCycle(ImportEntryProcessor.java:430)
    at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:347)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
Steps To Reproduce1- Open terminal
2- Verificate Return for another organization (cross store).
3- Select lines.
4- Deleted lines.
5- Add product
6- Pay the sales order.

Check the backoffice with the ewi.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0052235RR23Q2 closedranjith_qualiantech_com EWI org.codehaus.jettison.json.JSONException: JSONObject["deletedLines"] is not a JSONArray. 
caused by defect 0051588 closedranjith_qualiantech_com Order goes to Errors While Importing POS Data with OBSecurityException if cross-store return line is deleted 

-  Notes
(0148817)
hgbot (developer)
2023-04-25 07:50

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1155 [^]
(0148886)
hgbot (developer)
2023-04-26 07:44

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1155 [^]
(0148887)
hgbot (developer)
2023-04-26 07:44

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: c943bf4e2acb6681263d2d8514c8b431ce2fe51a
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 26-04-2023 05:44:01
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/c943bf4e2acb6681263d2d8514c8b431ce2fe51a [^]

Fixed ISSUE-52191: Ticket deletedLines should be initialized with empty array
* When resetting ticket properties, ticket deletedLines
  should be initialized with empty array

---
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/DeleteLine.js
---

- Issue History
Date Modified Username Field Change
2023-04-20 19:20 sofidossant New Issue
2023-04-20 19:20 sofidossant Assigned To => Retail
2023-04-20 19:20 sofidossant OBNetwork customer => OBPS
2023-04-20 19:20 sofidossant Support ticket => 62709
2023-04-20 19:20 sofidossant Triggers an Emergency Pack => No
2023-04-24 08:07 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2023-04-24 08:24 ranjith_qualiantech_com Relationship added caused by 0051588
2023-04-24 08:24 ranjith_qualiantech_com Regression level => Pre packaging ( pi )
2023-04-24 08:24 ranjith_qualiantech_com Regression date => 2023-03-20
2023-04-24 08:24 ranjith_qualiantech_com Regression introduced in release => RR23Q1
2023-04-24 08:24 ranjith_qualiantech_com Regression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/88694b5b41093f5fdc824cafe373a351923fed3c [^]
2023-04-24 08:25 ranjith_qualiantech_com Status new => scheduled
2023-04-24 14:55 maite Issue Monitored: maite
2023-04-25 07:48 ramprakash Issue Monitored: ramprakash
2023-04-25 07:50 hgbot Merge Request Status => open
2023-04-25 07:50 hgbot Note Added: 0148817
2023-04-25 08:30 sreehari Assigned To ranjith_qualiantech_com => sreehari
2023-04-25 12:59 ranjith_qualiantech_com Assigned To sreehari => ranjith_qualiantech_com
2023-04-26 07:43 hgbot Merge Request Status open => approved
2023-04-26 07:44 marvintm Status scheduled => acknowledged
2023-04-26 07:44 marvintm Status acknowledged => scheduled
2023-04-26 07:44 hgbot Resolution open => fixed
2023-04-26 07:44 hgbot Status scheduled => closed
2023-04-26 07:44 hgbot Note Added: 0148886
2023-04-26 07:44 hgbot Fixed in Version => RR23Q3
2023-04-26 07:44 hgbot Note Added: 0148887


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker