Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0048780
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Retail APImajoralways2022-03-14 13:052022-03-18 11:36
Reporterjose_duqueView Statuspublic 
Assigned Tocaristu 
PrioritynormalResolutionfixedFixed in VersionRR22Q2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version11
OS VersionUbuntu 18.04.1 LTSDatabase version10.10Ant version1.10.5
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0048780: It is not possible to create or modify a product if there exist 2 product categories with the same searchkey

DescriptionWhen trying to import a Product, if the product category exists in two different organizations for this searchkey we won't be able to import/create/modify.
Steps To ReproduceTry to import a product that has a product category that exists in two organizations. This category has the same search key in both organizations.
Proposed SolutionWhen doing the checks to create the entity, check the organization and searchkey of the category instead of only the searchkey.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0051547pi closedcaristu PriceList API - Product price is wrongly added when same products searchKey on different Orgs are in OB backoffice 

-  Notes
(0135793)
hgbot (developer)
2022-03-17 11:34

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/13 [^]
(0135830)
hgbot (developer)
2022-03-18 07:56

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/13 [^]
(0135831)
hgbot (developer)
2022-03-18 07:56

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: e039adc0a27adbcb5b467b28dd69e1ede880ee0c
Author: Prakash M <prakash@qualiantech.com>
Date: 18-03-2022 11:16:19
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/e039adc0a27adbcb5b467b28dd69e1ede880ee0c [^]

Related To ISSUE-48780: Changed organization property sequence number lower than any of the referenced properties
This is necessary for organization tree validation in referenced enitities

---
M src-db/database/sourcedata/OBEI_PROP_MAP_INSTANCE.xml
---
(0135832)
marvintm (manager)
2022-03-18 07:57

This issue will be fixed by the fix of the following issue: https://issues.openbravo.com/view.php?id=48096 [^]
combined with the changeset we already committed.
(0135841)
hgbot (developer)
2022-03-18 11:35

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.external.integration [^]
Changeset: d73d080cc8e902b114c8c4b7b66d99f19c51044c
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 18-03-2022 11:34:48
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.external.integration/-/commit/d73d080cc8e902b114c8c4b7b66d99f19c51044c [^]

fixes BUG-48780: add org natural tree criteria when looking for referenced entities

  Take into account the natural tree criteria when looking for
referenced entities when it applies. Together with this, now when
importing the organization mapping (if any) is applied first so we can
always use the org id when looking for referenced entities.

  Finally, a related improvement has been done: now when
importing we initialize the children with the same organization as their
parent. Note that this value can be overriden later if there is a
mapping in the children for the organization property.

  Note that without this change child objects were being created with the
current context organization by default which can lead to incorrect
definitions when the parent is imported witha different organization
from the current context one.

---
M src/org/openbravo/service/external/integration/importer/DalSynchronizableBusinessObjectImporter.java
M src/org/openbravo/service/external/integration/mapping/DirectPropertyMapping.java
M src/org/openbravo/service/external/integration/mapping/PropertyMapper.java
---
(0135843)
caristu (manager)
2022-03-18 11:36

MR: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.external.integration/-/merge_requests/9 [^]

- Issue History
Date Modified Username Field Change
2022-03-14 13:05 jose_duque New Issue
2022-03-14 13:05 jose_duque Assigned To => caristu
2022-03-14 13:05 jose_duque Triggers an Emergency Pack => No
2022-03-14 13:05 jose_duque Issue generated from 0048492
2022-03-14 13:57 martinsdan Issue Monitored: martinsdan
2022-03-15 12:25 adrianromero Assigned To caristu => Retail
2022-03-17 11:34 hgbot Note Added: 0135793
2022-03-18 07:56 hgbot Note Added: 0135830
2022-03-18 07:56 hgbot Note Added: 0135831
2022-03-18 07:56 marvintm Status new => scheduled
2022-03-18 07:56 marvintm Assigned To Retail => prakashmurugesan88
2022-03-18 07:57 marvintm Note Added: 0135832
2022-03-18 07:57 marvintm Status scheduled => resolved
2022-03-18 07:57 marvintm Fixed in Version => RR22Q2
2022-03-18 07:57 marvintm Resolution open => fixed
2022-03-18 07:57 marvintm Review Assigned To => marvintm
2022-03-18 07:57 marvintm Status resolved => closed
2022-03-18 11:35 hgbot Note Added: 0135841
2022-03-18 11:35 caristu Assigned To prakashmurugesan88 => caristu
2022-03-18 11:36 caristu Note Added: 0135843
2023-02-09 11:00 alostale Relationship added related to 0051547


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker