Openbravo Issue Tracking System - Retail Modules
View Issue Details
0056045Retail ModulesRetail APIpublic2024-07-01 13:382024-07-19 08:05
AgatheBertin 
sreehari 
normalmajorhave not tried
closedfixed 
5
 
RR24Q2.2 
No
0056045: API ProductListsForLabels - Organization
API ProductListsForLabels

When importing, we have to set an organization (Organization of the product list for labels)

But, we can only integrate the object using the NAME of the organization

We should be able to use the searchKey of the organization
Use the SearchKey of the organiztion and you get the error "Error while importing an item: No entry found in Organization with name = 0000001203"


[{"client":"CCC","organization":"0000001203","name":"Test ABE1234","searchKey":"Test ABE1234","active":true,"printDate":"2024-02-07","products":[{"product":"477715"},{"product":"581301"},{"product":"182496"},{"product":"477720"},{"product":"549207"},{"product":"581297"}]}]
Allow to import with the search Key of the organization.


JWE:
Import will check first SearchKey and if not then organization name (to keep retrocompatbility)

Export will be done just by searchKey
No tags attached.
blocks defect 0055878 closed sreehari API ProductListsForLabels - Organization 
Issue History
2024-07-17 10:55guillermogilTypedefect => backport
2024-07-17 10:55guillermogilTarget Version => RR24Q2.2
2024-07-19 06:59hgbotNote Added: 0167145
2024-07-19 08:05hgbotResolutionopen => fixed
2024-07-19 08:05hgbotStatusscheduled => closed
2024-07-19 08:05hgbotNote Added: 0167153
2024-07-19 08:05hgbotNote Added: 0167154

Notes
(0167145)
hgbot   
2024-07-19 06:59   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing.api/-/merge_requests/7 [^]
(0167153)
hgbot   
2024-07-19 08:05   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing.api [^]
Changeset: fa3bc87c11cbaf593424ccdc121eb94ce5fa5ed6
Author: Sreehari Venkataraman <sreehari.venkataraman.ext@openbravo.com>
Date: 19-07-2024 06:05:08
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing.api/-/commit/fa3bc87c11cbaf593424ccdc121eb94ce5fa5ed6 [^]

Fixes ISSUE-56045: Changed organization name to searchKey on the API to standardize
Created ImportProductListsForLabelsJavaPropertyMappingHandler

---
A src/org/openbravo/pos2/product/label/printing/api/mappings/ImportProductListsForLabelsJavaPropertyMappingHandler.java
M examples/Openbravo API.postman_collection.json
M src-db/database/sourcedata/OBEI_PROP_MAP_INSTANCE.xml
---
(0167154)
hgbot   
2024-07-19 08:05   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing.api/-/merge_requests/7 [^]