Openbravo Issue Tracking System - Modules | |||||||||||||
View Issue Details | |||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0053935 | Modules | Openbravo Business API | public | 2023-11-15 03:49 | 2024-01-04 12:44 | ||||||||
Reporter | ivazquez | ||||||||||||
Assigned To | Rajesh_18 | ||||||||||||
Priority | high | Severity | major | Reproducibility | always | ||||||||
Status | closed | Resolution | fixed | ||||||||||
Platform | OS | 5 | OS Version | ||||||||||
Product Version | |||||||||||||
Target Version | Fixed in Version | ||||||||||||
Merge Request Status | approved | ||||||||||||
Regression date | |||||||||||||
Regression introduced by commit | |||||||||||||
Regression level | |||||||||||||
Review Assigned To | |||||||||||||
Support ticket | 79857 | ||||||||||||
OBNetwork customer | Gold | ||||||||||||
Regression introduced in release | |||||||||||||
Summary | 0053935: Update UOM product | ||||||||||||
Description | When to use the Product API with the following endpoint: http://localhost:8080/openbravo/ws/org.openbravo.api.ImportService/Product [^] In the alternativeUnitOfMeasure field some of the fields "sales", "purchase", and "logistics" are set as "P" of primary and there is already a UOM with some of these fields in the back office, because of the Event Handler ProductAumEventHandler.java, the EDL Request will be in error. The API should delete the UOM that is not defined in the JSON that is sent in the request and add the new UOM. | ||||||||||||
Steps To Reproduce | Verify in the back office a product where in the "Alternate UOM" tab there is one that contains a field such as "primary". Build the JSON to update this Product and inside and in the field "alternativeUnitOfMeasure" add a UOM setting in the same field as the one in the product tab as "P": "alternativeUnitOfMeasure": [ { "sales": "S", "purchase": "P", "logistics": "P", "uom": "PCB_25", "conversionRate": 25 } ] Perform the request and verify that the EDL Request failed with the following message: Error while importing an item: Duplicate PRIMARY Alternate Unit of Measure in Logistics for this product. | ||||||||||||
Proposed Solution | |||||||||||||
Additional Information | |||||||||||||
Tags | No tags attached. | ||||||||||||
Relationships |
| ||||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=19282&type=bug | ||||||||||||
Issue History | |||||||||||||
Date Modified | Username | Field | Change | ||||||||||
2023-11-15 03:49 | ivazquez | New Issue | |||||||||||
2023-11-15 03:49 | ivazquez | Assigned To | => Triage Platform Conn | ||||||||||
2023-11-15 03:49 | ivazquez | Support ticket | => 79857 | ||||||||||
2023-11-15 03:49 | ivazquez | OBNetwork customer | => Gold | ||||||||||
2023-11-16 09:26 | adrianromero | Assigned To | Triage Platform Conn => Retail | ||||||||||
2023-12-06 14:12 | Rajesh_18 | Assigned To | Retail => Rajesh_18 | ||||||||||
2023-12-06 14:12 | Rajesh_18 | Status | new => scheduled | ||||||||||
2023-12-11 09:29 | hgbot | Merge Request Status | => open | ||||||||||
2023-12-11 09:29 | hgbot | Note Added: 0158030 | |||||||||||
2023-12-19 08:22 | hgbot | Merge Request Status | open => approved | ||||||||||
2023-12-19 08:26 | hgbot | Resolution | open => fixed | ||||||||||
2023-12-19 08:26 | hgbot | Status | scheduled => closed | ||||||||||
2023-12-19 08:26 | hgbot | Note Added: 0158319 | |||||||||||
2023-12-19 08:26 | hgbot | Note Added: 0158320 | |||||||||||
2024-01-04 12:44 | ivazquez | File Added: 22Q4_53935_retailApi.patch | |||||||||||
2024-06-14 19:37 | ivazquez | Relationship added | blocks 0055778 | ||||||||||
2024-06-14 19:37 | ivazquez | Relationship deleted | blocks 0055778 | ||||||||||
2024-06-14 19:38 | ivazquez | Relationship added | related to 0055778 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|