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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0052085
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Retail APImajorhave not tried2023-04-07 13:292023-04-26 07:11
Reporterazzeddine_meftohView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionfixedFixed in VersionRR23Q3
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Statusapproved
Review Assigned Tomarvintm
OBNetwork customerGold
Support ticket61963
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0052085: RETAPCO_OrderCreation generated on POS wrongly

Descriptionwhen we have the push ticket event activated we are facing some cases where the same ticket is sent multiple times :

on React POS : Open an existing ticket on POS + review payment + done an event RETAPCO_OrderCreation is triggered wrongly
this event should be triggered only when creating the sales order

Steps To Reproduceopening an existing ticket on POS + review payment + done

-> the event is triggered
Proposed SolutionThe proposed solution that we are going to implement is the following:
- We will create two new events, "Web POS Order Update", and "External Order Update"
- We will ensure that the proper event is called from the OrderLoader, depending on whether the order already existed and is being changed in some way, or we are creating a new order that previously did not exist in the system.

For customers that need to receive both creation and update requests in a single endpoint, this will still be possible: you will need to subscribe to both events, pointing them to the same endpoint in the external system, and then you can check the "meta" property in the request to differentiate creations from updates:

  "meta": {
    "event": "RETAPCO_OrderCreation",
    "entity": "Order",
    "isMultiRecord": false
  }
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0148362)
psanjuan (viewer)
2023-04-11 15:21

Hello Azzeddine,
Currently, we do have only one event for the first sent and later on update of an order.
In fact, we are planning to rename such event so it clearly remarks that this event is the one to launch to create/update an order.

See also our comments on the JIRA RM-1715, which also implies the modification/update of an existing and already sent order.

We can not consider this as a bug, as it is design in such way, otherwise we will have to create more events that should be properly defined.
So far, we do not see any benefit on creating two events, one for the creation and another one for the updated, because at the end we are sending the same information.

Please let us know your feedback. Thanks.
(0148521)
hgbot (developer)
2023-04-18 06:34

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/66 [^]
(0148720)
hgbot (developer)
2023-04-21 12:29

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api [^]
Changeset: b48ece31cdb8edbf37c25b26f3577149221d195f
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 17-04-2023 16:51:27
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/commit/b48ece31cdb8edbf37c25b26f3577149221d195f [^]

Fixed ISSUE-52085: Added BusinessApiEvent for Order Update & EOL Update

---
M src-db/database/sourcedata/CNC_PUBLIC_EVENTS.xml
M src/org/openbravo/retail/api/events/order/OrderLoaderEventsHook.java
---
(0148721)
hgbot (developer)
2023-04-21 12:29

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/66 [^]
(0148879)
ranjith_qualiantech_com (viewer)
2023-04-26 07:11

Updated Wiki http://wiki.openbravo.com/wiki/Push_API#Standard_Business_API_Events [^]

- Issue History
Date Modified Username Field Change
2023-04-07 13:29 azzeddine_meftoh New Issue
2023-04-07 13:29 azzeddine_meftoh Assigned To => Triage Platform Conn
2023-04-07 13:29 azzeddine_meftoh Triggers an Emergency Pack => No
2023-04-10 13:22 ivazquez OBNetwork customer => Gold
2023-04-10 13:22 ivazquez Support ticket => 61963
2023-04-11 15:13 marvintm Assigned To Triage Platform Conn => Retail
2023-04-11 15:21 psanjuan Note Added: 0148362
2023-04-11 15:21 psanjuan Assigned To Retail => psanjuan
2023-04-11 15:22 psanjuan Assigned To psanjuan => azzeddine_meftoh
2023-04-11 15:22 psanjuan Status new => feedback
2023-04-17 11:15 marvintm Assigned To azzeddine_meftoh => ranjith_qualiantech_com
2023-04-17 11:18 marvintm Proposed Solution updated
2023-04-17 11:18 marvintm Status feedback => scheduled
2023-04-18 06:34 hgbot Merge Request Status => open
2023-04-18 06:34 hgbot Note Added: 0148521
2023-04-21 12:29 hgbot Merge Request Status open => approved
2023-04-21 12:29 hgbot Resolution open => fixed
2023-04-21 12:29 hgbot Status scheduled => closed
2023-04-21 12:29 hgbot Note Added: 0148720
2023-04-21 12:29 hgbot Note Added: 0148721
2023-04-26 07:10 marvintm Status closed => resolved
2023-04-26 07:10 marvintm Fixed in Version => RR23Q3
2023-04-26 07:10 marvintm Review Assigned To => marvintm
2023-04-26 07:10 marvintm Status resolved => closed
2023-04-26 07:11 ranjith_qualiantech_com Note Added: 0148879


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker