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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0039887
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2019-01-09 10:322019-01-10 09:41
ReportergorkaionView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityurgentResolutioninvalidFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Togorkaion
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0039887: relatedLines json array expect different types for product key in ExternalOrderLoader and OrderLoader

DescriptionWhen the relatedLines is sent to the ExternalOrderLoeader it is expected to have a JSONArray of JSONObjects with 2 keys:

- orderlineId with the id of the related order line
- product with a String that could be the "id", "searchKey", "name", "uPCEAN".

https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/tip/src/org/openbravo/retail/posterminal/ExternalOrderLoader.java#l653 [^]

Later when the OrderLoader is executed this changes as it expects the JSONObjects to have also 2 keys but in this case the product key is expecting a JSONObject with extended product information.

https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/tip/src/org/openbravo/retail/posterminal/OrderLoader.java#l777 [^]
Steps To ReproduceTry to load an order using ExternalOrderLoeader with related service lines.
Proposed SolutionFix the ExternalOrderLoader to build the expected JSONObject for the product key when the relatedLines array is handled.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0033614 closedSandrahuguet OrderLoader: Extra m_product read for every orderline related to services 

-  Notes
(0108880)
gorkaion (developer)
2019-01-10 09:41

the product json object used in OrderLoader is in OrderLine JSONObject instead of the relatedLine array. So there is no issue.

- Issue History
Date Modified Username Field Change
2019-01-09 10:32 gorkaion New Issue
2019-01-09 10:32 gorkaion Assigned To => Retail
2019-01-09 10:32 gorkaion Resolution time => 1548802800
2019-01-09 10:32 gorkaion Triggers an Emergency Pack => No
2019-01-09 10:32 gorkaion Issue generated from 0033614
2019-01-09 10:32 gorkaion Relationship added related to 0033614
2019-01-09 10:38 gorkaion Summary OrderLoader: Extra m_product read for every orderline related to services => relatedLines json array expect different types for product key in ExternalOrderLoader and OrderLoader
2019-01-09 10:38 gorkaion Description Updated View Revisions
2019-01-09 10:38 gorkaion Steps to Reproduce Updated View Revisions
2019-01-09 10:38 gorkaion Proposed Solution updated
2019-01-09 11:21 rafaroda Issue Monitored: rafaroda
2019-01-09 14:14 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2019-01-09 14:14 ranjith_qualiantech_com Status new => scheduled
2019-01-10 09:41 gorkaion Review Assigned To => gorkaion
2019-01-10 09:41 gorkaion Note Added: 0108880
2019-01-10 09:41 gorkaion Status scheduled => closed
2019-01-10 09:41 gorkaion Resolution open => invalid


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker