Openbravo Issue Tracking System - Retail Modules
View Issue Details
0048954Retail ModulesWeb POSpublic2022-04-01 11:092022-04-20 14:26
caristu 
caristu 
highminorhave not tried
closedfixed 
5
 
 
No
0048954: Generate an event when creating an order in the WebPOS
It would be nice to have a Business API event that would be triggered when a new order is created in the WebPOS
.
Create 2 different events: one for the events created from the WebPOS and other for those created with the ExternalOrderLoader. This is because depending on the usage of the ExternalOrderLoader there may be cases where it is not desired to notificate the creation of the order in that flow.

Together with this a new protected method "triggerOrderCreationEvent" will be created in the OrderLoader that will trigger the synchronization event. This method will be called inside the "saveRecord" method (TBD in which part).

The ExternalOrderLoader will override the new "triggerOrderCreationEvent" method to trigger its specific event instead of the one triggered by the OrderLoader by default.
No tags attached.
depends on feature request 0048579 closed caristu Openbravo ERP Push API 
Issue History
2022-04-01 11:09caristuNew Issue
2022-04-01 11:09caristuAssigned To => Retail
2022-04-01 11:09caristuTriggers an Emergency Pack => No
2022-04-01 12:30caristuStatusnew => acknowledged
2022-04-01 12:30caristuRelationship addeddepends on 0048579
2022-04-01 13:04caristuProposed Solution updated
2022-04-01 13:05caristuProposed Solution updated
2022-04-01 13:08caristuProposed Solution updated
2022-04-01 13:09caristuProposed Solution updated
2022-04-01 13:09caristuProposed Solution updated
2022-04-11 17:05hgbotNote Added: 0136468
2022-04-11 18:50hgbotNote Added: 0136477
2022-04-11 18:54caristuAssigned ToRetail => caristu
2022-04-11 18:54caristuStatusacknowledged => scheduled
2022-04-20 14:26hgbotResolutionopen => fixed
2022-04-20 14:26hgbotStatusscheduled => closed
2022-04-20 14:26hgbotNote Added: 0136639
2022-04-20 14:26hgbotNote Added: 0136640
2022-04-20 14:26hgbotNote Added: 0136641
2022-04-20 14:26hgbotNote Added: 0136642

Notes
(0136468)
hgbot   
2022-04-11 17:05   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/39 [^]
(0136477)
hgbot   
2022-04-11 18:50   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/769 [^]
(0136639)
hgbot   
2022-04-20 14:26   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api [^]
Changeset: 34b69900577ec0f27dc3163e628de522f1c30adf
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 20-04-2022 14:24:56
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/commit/34b69900577ec0f27dc3163e628de522f1c30adf [^]

fixes BUG-48954: trigger order creation events

  Two new events are defined:
    - RETAPCO_OrderCreation: event for orders created in the WebPOS
    - RETAPCO_ExternalOrderCreation: event for orders created through
the ExternalOrderLoader

  Created a new OrderLoader hook to handle the event triggering.

---
A src-db/database/sourcedata/CNC_PUBLIC_EVENTS.xml
A src/org/openbravo/retail/api/events/order/OrderLoaderEventsHook.java
---
(0136640)
hgbot   
2022-04-20 14:26   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/39 [^]
(0136641)
hgbot   
2022-04-20 14:26   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/769 [^]
(0136642)
hgbot   
2022-04-20 14:26   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 4e92d61ef7386e9da0562cddcd418143984df66a
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 20-04-2022 12:42:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/4e92d61ef7386e9da0562cddcd418143984df66a [^]

related to BUG-48954: flag to identify the ExternalOrderLoader flow

---
M src/org/openbravo/retail/posterminal/ExternalOrderLoader.java
---