Openbravo Issue Tracking System - Retail Modules
View Issue Details
0057073Retail ModulesRetail APIpublic2024-11-12 15:212024-11-16 07:39
kchoperena 
guillermogil 
highminoralways
closedfixed 
5
 
 
No
0057073: Export Quotation API: When a quotation is reactivated and updated, we are not sending the ID of the original one to be replaced
When a Quotation is reactivated and modified in Web POS, Openbravo creates a new quotation and rejects the original one

In the PUSH event related to the creation of Quotation that replaces the original, we are not including the ID of the document that we are replacing. So then, an external system is not able to relate documents

A new field is required in the Quotation entity schema:

- Name: rejectedQuotationId
- Mandatory: false
- Description: Identifier of the quotation that has been rejected. It is only filled in cases of quotation reactivation

- Name: rejectedQuotationDocumentNo
- Mandatory: false
- Description: Document number of the quotation that has been rejected. It is only filled in cases of quotation reactivation
    PRE-REQUIREMENTS:
In back-end, Event Subscription window, configure the events:
- Web POS Quotation Creation
- Web POS Quotation Update

You can use a service like https://webhook.site/ [^] [^] to mock a External System

1.- Log into POS2
2.- Create a Quotation and complete it
3.- Reactivate the Quotation and modify it
4.- Complete it

RESULT:
   Events happened:
    - Web POS Quotation Creation (Original Quotation)
    - Web POS Quotation Update (Reject of the Original Quotation)
    - Web POS Quotation Creation (Creation of the Quotation that replaces the original)

In the creation event, there is no link to the quotation we are replacing so the external system can not relate the objects
No tags attached.
Issue History
2024-11-12 15:21kchoperenaNew Issue
2024-11-12 15:21kchoperenaAssigned To => Retail
2024-11-12 15:21kchoperenaTriggers an Emergency Pack => No
2024-11-12 15:24kchoperenaDescription Updatedbug_revision_view_page.php?rev_id=28767#r28767
2024-11-12 15:25kchoperenaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=28769#r28769
2024-11-12 15:54hgbotNote Added: 0171826
2024-11-13 05:44guillermogilAssigned ToRetail => guillermogil
2024-11-13 05:44guillermogilStatusnew => scheduled
2024-11-13 15:53hgbotNote Added: 0171939
2024-11-13 16:01hgbotNote Added: 0171940
2024-11-16 07:39hgbotNote Added: 0172074
2024-11-16 07:39hgbotResolutionopen => fixed
2024-11-16 07:39hgbotStatusscheduled => closed
2024-11-16 07:39hgbotNote Added: 0172075

Notes
(0171826)
hgbot   
2024-11-12 15:54   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/380 [^]
(0171939)
hgbot   
2024-11-13 15:53   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/380 [^]
(0171940)
hgbot   
2024-11-13 16:01   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/137 [^]
(0172074)
hgbot   
2024-11-16 07:39   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/137 [^]
(0172075)
hgbot   
2024-11-16 07:39   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api [^]
Changeset: 5a54f60e6f93551dcd3be8738997a7ac324345ef
Author: Kepa Choperena <kepa.choperena@openbravo.com>
Date: 16-11-2024 06:39:21
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/commit/5a54f60e6f93551dcd3be8738997a7ac324345ef [^]

Fixes ISSUE-57073: Added rejectedQuotationId & rejectedQuotationDocumentNo in Quotation mapping

---
M src-db/database/sourcedata/OBEI_PROP_MAP_INSTANCE.xml
---