Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0052647 | Retail Modules | Retail API | public | 2023-06-01 18:11 | 2023-06-22 08:02 |
Reporter | alfonso_alcalde | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | 23Q3 | |
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | approved | ||||
Review Assigned To | |||||
OBNetwork customer | OBPS | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0052647: API ImportService PriceList ERROR | ||||
Description | When trying to import a PriceList via API, and the Default Price List Schema created in the first execution does not exist (it can be deleted from BO) and remains cached in the server, the following error occurs: ERROR: insert or update on table "m_pricelist_version" violates foreign key constraint "m_pricelist_version_m_discount" Detail: Key (m_discountschema_id)=(18C8CB845836403A95275AB61B4636C6) is not present in table "m_discountschema". If the schema does not exist, in the first execution it is created and cached from the following method: org.openbravo.api.mappings.pricelist/PriceListVersionOBObjectInitializer/getPriceListSchema. Attached is json from "sampledata" to reproduce the error. | ||||
Steps To Reproduce | Delete the price list schema called "Default Price List Schema", if it exists, from BO. Execute the following API POST method: /ws/org.openbravo.api.ImportService/PriceList No products or exceptions are needed. Attached json with example "sampledata". | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=18616&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2023-06-01 18:11 | alfonso_alcalde | New Issue | |||
2023-06-01 18:11 | alfonso_alcalde | Assigned To | => Triage Platform Conn | ||
2023-06-01 18:11 | alfonso_alcalde | File Added: PriceList.json | |||
2023-06-01 18:11 | alfonso_alcalde | OBNetwork customer | => OBPS | ||
2023-06-01 18:11 | alfonso_alcalde | Triggers an Emergency Pack | => No | ||
2023-06-01 18:17 | marvintm | Assigned To | Triage Platform Conn => Retail | ||
2023-06-12 14:20 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2023-06-13 08:22 | ranjith_qualiantech_com | Status | new => scheduled | ||
2023-06-14 07:51 | hgbot | Merge Request Status | => open | ||
2023-06-14 07:51 | hgbot | Note Added: 0151130 | |||
2023-06-22 08:02 | hgbot | Merge Request Status | open => approved | ||
2023-06-22 08:02 | hgbot | Resolution | open => fixed | ||
2023-06-22 08:02 | hgbot | Status | scheduled => closed | ||
2023-06-22 08:02 | hgbot | Note Added: 0151472 | |||
2023-06-22 08:02 | hgbot | Note Added: 0151473 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|