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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0048954
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Retail Modules] Web POSminorhave not tried2022-04-01 11:092022-04-20 14:26
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0048954: Generate an event when creating an order in the WebPOS

DescriptionIt would be nice to have a Business API event that would be triggered when a new order is created in the WebPOS
Steps To Reproduce.
Proposed SolutionCreate 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on feature request 0048579 closedcaristu Openbravo ERP Push API 

-  Notes
(0136468)
hgbot (developer)
2022-04-11 17:05

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/39 [^]
(0136477)
hgbot (developer)
2022-04-11 18:50

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/769 [^]
(0136639)
hgbot (developer)
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 (developer)
2022-04-20 14:26

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/39 [^]
(0136641)
hgbot (developer)
2022-04-20 14:26

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/769 [^]
(0136642)
hgbot (developer)
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
---

- Issue History
Date Modified Username Field Change
2022-04-01 11:09 caristu New Issue
2022-04-01 11:09 caristu Assigned To => Retail
2022-04-01 11:09 caristu Triggers an Emergency Pack => No
2022-04-01 12:30 caristu Status new => acknowledged
2022-04-01 12:30 caristu Relationship added depends on 0048579
2022-04-01 13:04 caristu Proposed Solution updated
2022-04-01 13:05 caristu Proposed Solution updated
2022-04-01 13:08 caristu Proposed Solution updated
2022-04-01 13:09 caristu Proposed Solution updated
2022-04-01 13:09 caristu Proposed Solution updated
2022-04-11 17:05 hgbot Note Added: 0136468
2022-04-11 18:50 hgbot Note Added: 0136477
2022-04-11 18:54 caristu Assigned To Retail => caristu
2022-04-11 18:54 caristu Status acknowledged => scheduled
2022-04-20 14:26 hgbot Resolution open => fixed
2022-04-20 14:26 hgbot Status scheduled => closed
2022-04-20 14:26 hgbot Note Added: 0136639
2022-04-20 14:26 hgbot Note Added: 0136640
2022-04-20 14:26 hgbot Note Added: 0136641
2022-04-20 14:26 hgbot Note Added: 0136642


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker