Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051479Retail ModulesRetail APIpublic2023-01-11 16:002023-01-27 16:10
nicola_uva 
ranjith_qualiantech_com 
urgentmajorhave not tried
closedfixed 
5
 
RR22Q4.2 
No
0051479: BP API -Wehen we create BP If we have two greetings with same name (different org) an error happen
When we have two greetings with same name (different org) an error happen. Below the error:
"Error while importing an item: query did not return a unique result: 2".
See the full stack trace attached


In addition, when a new civility is sent, it seems to be created in the organization of the user sending the JSON (IntegrationUser) and not on the organization of the business partner inside the JSON
Using postman add the request attached
The mapping should be able to define properly how to identify records univocally
No tags attached.
blocks defect 0051333pi closed ranjith_qualiantech_com BP API -Wehen we create BP If we have two greetings with same name (different org) an error happen 
Issue History
2023-01-27 10:40marvintmTypedefect => backport
2023-01-27 10:40marvintmTarget Versionpi => RR22Q4.2
2023-01-27 11:48hgbotNote Added: 0145929
2023-01-27 16:10hgbotResolutionopen => fixed
2023-01-27 16:10hgbotStatusscheduled => closed
2023-01-27 16:10hgbotNote Added: 0145947
2023-01-27 16:10hgbotNote Added: 0145948

Notes
(0145929)
hgbot   
2023-01-27 11:48   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/122 [^]
(0145947)
hgbot   
2023-01-27 16:10   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 0237de476c02c272f9c4521de262a883cd768620
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 27-01-2023 16:13:29
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/0237de476c02c272f9c4521de262a883cd768620 [^]

Fixed ISSUE-51479: Greeting should be created always with * Org
* Added OBObjectInitializer for import greeting,
  to save greeting always in * organization

---
A src/org/openbravo/api/mappings/businesspartner/GreetingOBObjectInitializer.java
---
(0145948)
hgbot   
2023-01-27 16:10   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/122 [^]