Openbravo Issue Tracking System - Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0056486 | Modules | Openbravo Business API | public | 2024-09-18 10:24 | 2025-01-22 17:21 |
|
Reporter | vmromanos | |
Assigned To | caristu | |
Priority | normal | 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 | |
OBNetwork customer | OBPS |
Regression introduced in release | |
|
Summary | 0056486: OneToManyEntityPropertyMapping doesn't respect Selected Properties On Entity Referencing |
Description | I have an entity mapping (SSMSTask) that has a property (stockIncidents) defined as OneToManyEntityPropertyMapping.
The StockIncident entity mapping is defined with Selected Properties On Entity Referencing = "Those Selected", with these 3 properties:
* documentNo "As identifier"
* date "As Information"
* incidentReason "As Information"
When I export a task with a stockIncident, the stockIncidents property shows all the properties instead of just the three above.
|
Steps To Reproduce | Export the SSMSTask with ID 6E49ABDE00154A328CAC11C90F6141B7.
The exported JSON is:
{
"warehouse": "WC",
"status": "CO",
"inventoryTransactionType": "PUT-TR",
"user": "AWOQAAdmin",
"product": "Ale Beer",
"product_info": {
"searchKey": "US/0001",
"name": "Ale Beer",
"id": "F4901CE835DA4353831DEF0396C9054E"
},
"expectedQuantity": 5,
"confirmedQuantity": 4,
"UOM": "Unit",
"expectedBinFrom": "AWOCountTest0002",
"confirmedBinFrom": "AWOCountTest0002",
"expectedBinTo": "Beverage101",
"confirmedBinTo": "Beverage101",
"batchOfTasks": "1000155",
"priority": 100,
"taskType": "PA",
"internalRouting": "STGn-STGn/MC",
"behaveAsGroup": false,
"behaveAsGroupWithHandlingUnit": false,
"movementLine": "B80DE10ED8DA461D906257D4B2ECE208",
"movementLine_info": {
"id": "B80DE10ED8DA461D906257D4B2ECE208",
"lineNo": 10,
"documentNo": "10000085"
},
"pickingList": "AWOPLST1000095",
"deltaResponse": "RAISE",
"stockIncidents": [
{
"organization": "US",
"documentType": "Stock Incident",
"documentNo": "SI1000001",
"warehouse": "WC",
"date": "2024-07-17",
"product": "US/0001",
"uOM": "Unit",
"quantity": 2,
"bin": "Beverage101",
"markDown": false,
"destroyed": false,
"incidentReason": "D",
"sourceTask": {
"warehouse": "US West Coast",
"status": "CO",
"inventoryTransactionType": "Put-Away StorageDetail",
"organization": "US West Coast",
"active": true,
"userContact": "AWOQAAdmin",
"product": "Ale Beer",
"expectedQuantity": 5,
"expectedLocatorFrom": "AWOCountTest0002",
"expectedLocatorTo": "Beverage101",
"confirmedQuantity": 4,
"confirmedLocatorFrom": "AWOCountTest0002",
"confirmedLocatorTo": "Beverage101",
"uOM": "Unit",
"taskType": "PA - Goods PutAway - 100 - 10",
"internalRouting": "STGn to STGn, ManConf - STGN - Storage - Non Public - US West Coast - STGN - Storage - Non Public - US West Coast",
"movementLine": "10 - 4 - 10000085 - 17-07-2024_US/0001_AWOCountTest0002_Beverage101_PUT",
"batchOfTasks": "1000155",
"warehousePickingList": "AWOPLST1000095 - AWO Picking List"
},
"documentStatus": "DR"
}
],
"id": "6E49ABDE00154A328CAC11C90F6141B7"
}
but it should be:
{
"warehouse": "WC",
"status": "CO",
"inventoryTransactionType": "PUT-TR",
"user": "AWOQAAdmin",
"product": "Ale Beer",
"product_info": {
"searchKey": "US/0001",
"name": "Ale Beer",
"id": "F4901CE835DA4353831DEF0396C9054E"
},
"expectedQuantity": 5,
"confirmedQuantity": 4,
"UOM": "Unit",
"expectedBinFrom": "AWOCountTest0002",
"confirmedBinFrom": "AWOCountTest0002",
"expectedBinTo": "Beverage101",
"confirmedBinTo": "Beverage101",
"batchOfTasks": "1000155",
"priority": 100,
"taskType": "PA",
"internalRouting": "STGn-STGn/MC",
"behaveAsGroup": false,
"behaveAsGroupWithHandlingUnit": false,
"movementLine": "B80DE10ED8DA461D906257D4B2ECE208",
"movementLine_info": {
"id": "B80DE10ED8DA461D906257D4B2ECE208",
"lineNo": 10,
"documentNo": "10000085"
},
"pickingList": "AWOPLST1000095",
"deltaResponse": "RAISE",
"stockIncidents": [
{
"documentNo": "SI1000001",
"date": "2024-07-17",
"incidentReason": "D"
}
],
"id": "6E49ABDE00154A328CAC11C90F6141B7"
} |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | feature request | 0048665 | | closed | caristu | Modules | Improve EntityPropertyMapping to support exporting a subset of properties | related to | feature request | 0056485 | | closed | vmromanos | Openbravo ERP | [RM-16264] OBAWOTask API entity mapping refactor |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2024-09-18 10:24 | vmromanos | New Issue | |
2024-09-18 10:24 | vmromanos | Assigned To | => Triage Platform Conn |
2024-09-18 10:24 | vmromanos | OBNetwork customer | => No |
2024-09-18 10:39 | vmromanos | Relationship added | related to 0056485 |
2024-09-19 09:39 | adrianromero | OBNetwork customer | No => OBPS |
2024-09-19 09:39 | adrianromero | Assigned To | Triage Platform Conn => caristu |
2024-09-19 09:39 | adrianromero | Status | new => acknowledged |
2024-09-27 08:52 | hgbot | Merge Request Status | => open |
2024-09-27 08:52 | hgbot | Note Added: 0169669 | |
2024-09-27 11:16 | hgbot | Note Added: 0169680 | |
2024-10-11 13:08 | hgbot | Note Added: 0170280 | |
2024-10-11 13:11 | hgbot | Note Added: 0170281 | |
2024-10-11 13:12 | hgbot | Note Added: 0170282 | |
2024-10-11 13:14 | hgbot | Note Added: 0170283 | |
2024-10-11 13:16 | hgbot | Note Added: 0170284 | |
2024-10-11 13:17 | hgbot | Note Added: 0170285 | |
2024-10-11 13:18 | hgbot | Note Added: 0170286 | |
2024-10-11 13:20 | hgbot | Note Added: 0170287 | |
2024-10-11 13:22 | hgbot | Note Added: 0170288 | |
2024-10-11 13:24 | hgbot | Note Added: 0170289 | |
2024-10-11 13:27 | hgbot | Note Added: 0170290 | |
2024-10-11 13:28 | hgbot | Note Added: 0170291 | |
2024-10-18 08:08 | hgbot | Note Added: 0170552 | |
2024-10-18 08:10 | hgbot | Note Added: 0170553 | |
2024-10-18 08:14 | hgbot | Note Added: 0170554 | |
2024-10-18 10:09 | caristu | Relationship added | related to 0054979 |
2024-10-18 10:19 | caristu | Relationship added | related to 0048665 |
2024-10-18 10:19 | caristu | Relationship deleted | related to 0054979 |
2024-11-28 10:45 | alostale | Type | defect => feature request |
2025-01-20 15:01 | hgbot | Merge Request Status | open => approved |
2025-01-22 11:16 | hgbot | Resolution | open => fixed |
2025-01-22 11:16 | hgbot | Status | acknowledged => closed |
2025-01-22 11:16 | hgbot | Note Added: 0174505 | |
2025-01-22 11:16 | hgbot | Note Added: 0174506 | |
2025-01-22 11:16 | hgbot | Note Added: 0174507 | |
2025-01-22 11:16 | hgbot | Note Added: 0174508 | |
2025-01-22 11:16 | hgbot | Note Added: 0174509 | |
2025-01-22 11:16 | hgbot | Note Added: 0174510 | |
2025-01-22 11:17 | hgbot | Note Added: 0174511 | |
2025-01-22 11:17 | hgbot | Note Added: 0174512 | |
2025-01-22 11:17 | hgbot | Note Added: 0174513 | |
2025-01-22 11:17 | hgbot | Note Added: 0174514 | |
2025-01-22 11:17 | hgbot | Note Added: 0174515 | |
2025-01-22 11:17 | hgbot | Note Added: 0174516 | |
2025-01-22 11:17 | hgbot | Note Added: 0174518 | |
2025-01-22 11:17 | hgbot | Note Added: 0174519 | |
2025-01-22 11:17 | hgbot | Note Added: 0174520 | |
2025-01-22 11:17 | hgbot | Note Added: 0174521 | |
2025-01-22 11:18 | hgbot | Note Added: 0174522 | |
2025-01-22 11:18 | hgbot | Note Added: 0174523 | |
2025-01-22 11:18 | hgbot | Note Added: 0174524 | |
2025-01-22 11:18 | hgbot | Note Added: 0174525 | |
2025-01-22 11:18 | hgbot | Note Added: 0174526 | |
2025-01-22 11:18 | hgbot | Note Added: 0174527 | |
2025-01-22 11:19 | hgbot | Note Added: 0174528 | |
2025-01-22 11:19 | hgbot | Note Added: 0174529 | |
2025-01-22 11:19 | hgbot | Note Added: 0174530 | |
2025-01-22 11:19 | hgbot | Note Added: 0174531 | |
2025-01-22 11:19 | hgbot | Note Added: 0174532 | |
2025-01-22 11:19 | hgbot | Note Added: 0174533 | |
2025-01-22 11:19 | hgbot | Note Added: 0174534 | |
2025-01-22 11:19 | hgbot | Note Added: 0174535 | |
2025-01-22 11:19 | hgbot | Note Added: 0174536 | |
2025-01-22 11:19 | hgbot | Note Added: 0174537 | |
2025-01-22 11:20 | hgbot | Note Added: 0174538 | |
2025-01-22 11:20 | hgbot | Note Added: 0174539 | |
2025-01-22 17:13 | hgbot | Note Added: 0174556 | |
2025-01-22 17:14 | hgbot | Note Added: 0174557 | |
2025-01-22 17:15 | hgbot | Note Added: 0174558 | |
2025-01-22 17:16 | hgbot | Note Added: 0174559 | |
2025-01-22 17:16 | hgbot | Note Added: 0174560 | |
2025-01-22 17:17 | hgbot | Note Added: 0174561 | |
2025-01-22 17:17 | hgbot | Note Added: 0174562 | |
2025-01-22 17:18 | hgbot | Note Added: 0174563 | |
2025-01-22 17:19 | hgbot | Note Added: 0174564 | |
2025-01-22 17:19 | hgbot | Note Added: 0174565 | |
2025-01-22 17:20 | hgbot | Note Added: 0174566 | |
2025-01-22 17:20 | hgbot | Note Added: 0174567 | |
2025-01-22 17:21 | hgbot | Note Added: 0174568 | |
Notes |
|
(0169669)
|
hgbot
|
2024-09-27 08:52
|
|
|
|
(0169680)
|
hgbot
|
2024-09-27 11:16
|
|
|
|
(0170280)
|
hgbot
|
2024-10-11 13:08
|
|
|
|
(0170281)
|
hgbot
|
2024-10-11 13:11
|
|
|
|
(0170282)
|
hgbot
|
2024-10-11 13:12
|
|
|
|
(0170283)
|
hgbot
|
2024-10-11 13:14
|
|
|
|
(0170284)
|
hgbot
|
2024-10-11 13:16
|
|
|
|
(0170285)
|
hgbot
|
2024-10-11 13:17
|
|
|
|
(0170286)
|
hgbot
|
2024-10-11 13:18
|
|
|
|
(0170287)
|
hgbot
|
2024-10-11 13:20
|
|
|
|
(0170288)
|
hgbot
|
2024-10-11 13:22
|
|
|
|
(0170289)
|
hgbot
|
2024-10-11 13:24
|
|
|
|
(0170290)
|
hgbot
|
2024-10-11 13:27
|
|
|
|
(0170291)
|
hgbot
|
2024-10-11 13:28
|
|
|
|
(0170552)
|
hgbot
|
2024-10-18 08:08
|
|
|
|
(0170553)
|
hgbot
|
2024-10-18 08:10
|
|
|
|
(0170554)
|
hgbot
|
2024-10-18 08:14
|
|
|
|
(0174505)
|
hgbot
|
2025-01-22 11:16
|
|
Directly closing issue as related merge request is already approved.
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.external.integration [^]
Changeset: ff68c2286e8e8508717284d45810823770a04b2c
Author: Carlos Aristu <c.aristu@orisha.com>
Date: 22-01-2025 11:10:56
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.external.integration/-/commit/ff68c2286e8e8508717284d45810823770a04b2c [^]
fixes FR-56486: support property selection in one to many mappings
- Support property selection in one to many outward entity mappings
- Add the ability to configure the property selection at property
mapping level
---
A src-test/org/openbravo/service/external/integration/mapping/PropertyMappingTest.java
M src-db/database/model/tables/OBEI_ENTITY_MAPPING.xml
M src-db/database/model/tables/OBEI_PROP_MAP_INSTANCE.xml
M src-db/database/model/triggers/OBEI_ENTITY_MAPPING_MOD_TRG.xml
M src-db/database/model/triggers/OBEI_PROP_MAP_INSTANCE_MOD_TRG.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
M src-db/database/sourcedata/AD_TAB.xml
M src-test/org/openbravo/service/external/integration/StandaloneTestSuite.java
M src/org/openbravo/service/external/integration/export/SynchronizableBusinessObjectExporter.java
M src/org/openbravo/service/external/integration/handler/PropertyMappingInstanceEventHandler.java
M src/org/openbravo/service/external/integration/mapping/EntityPropertyMapping.java
M src/org/openbravo/service/external/integration/mapping/OneToManyEntityPropertyMapping.java
M src/org/openbravo/service/external/integration/mapping/PropertyMapper.java
M src/org/openbravo/service/external/integration/mapping/documentation/ObjectPropertyDocumentation.java
---
|
|
|
(0174506)
|
hgbot
|
2025-01-22 11:16
|
|
|
|
(0174507)
|
hgbot
|
2025-01-22 11:16
|
|
|
|
(0174508)
|
hgbot
|
2025-01-22 11:16
|
|
|
|
(0174509)
|
hgbot
|
2025-01-22 11:16
|
|
|
|
(0174510)
|
hgbot
|
2025-01-22 11:16
|
|
|
|
(0174511)
|
hgbot
|
2025-01-22 11:17
|
|
|
|
(0174512)
|
hgbot
|
2025-01-22 11:17
|
|
|
|
(0174513)
|
hgbot
|
2025-01-22 11:17
|
|
|
|
(0174514)
|
hgbot
|
2025-01-22 11:17
|
|
|
|
(0174515)
|
hgbot
|
2025-01-22 11:17
|
|
|
|
(0174516)
|
hgbot
|
2025-01-22 11:17
|
|
|
|
(0174518)
|
hgbot
|
2025-01-22 11:17
|
|
|
|
(0174519)
|
hgbot
|
2025-01-22 11:17
|
|
|
|
(0174521)
|
hgbot
|
2025-01-22 11:17
|
|
|
|
(0174520)
|
hgbot
|
2025-01-22 11:17
|
|
|
|
(0174522)
|
hgbot
|
2025-01-22 11:18
|
|
|
|
(0174523)
|
hgbot
|
2025-01-22 11:18
|
|
|
|
(0174524)
|
hgbot
|
2025-01-22 11:18
|
|
|
|
(0174525)
|
hgbot
|
2025-01-22 11:18
|
|
|
|
(0174526)
|
hgbot
|
2025-01-22 11:18
|
|
|
|
(0174527)
|
hgbot
|
2025-01-22 11:18
|
|
|
|
(0174528)
|
hgbot
|
2025-01-22 11:19
|
|
|
|
(0174529)
|
hgbot
|
2025-01-22 11:19
|
|
|
|
(0174530)
|
hgbot
|
2025-01-22 11:19
|
|
|
|
(0174531)
|
hgbot
|
2025-01-22 11:19
|
|
|
|
(0174532)
|
hgbot
|
2025-01-22 11:19
|
|
|
|
(0174533)
|
hgbot
|
2025-01-22 11:19
|
|
|
|
(0174534)
|
hgbot
|
2025-01-22 11:19
|
|
|
|
(0174535)
|
hgbot
|
2025-01-22 11:19
|
|
|
|
(0174536)
|
hgbot
|
2025-01-22 11:19
|
|
|
|
(0174537)
|
hgbot
|
2025-01-22 11:19
|
|
|
|
(0174538)
|
hgbot
|
2025-01-22 11:20
|
|
|
|
(0174539)
|
hgbot
|
2025-01-22 11:20
|
|
|
|
(0174556)
|
hgbot
|
2025-01-22 17:13
|
|
|
|
(0174557)
|
hgbot
|
2025-01-22 17:14
|
|
|
|
(0174558)
|
hgbot
|
2025-01-22 17:15
|
|
|
|
(0174559)
|
hgbot
|
2025-01-22 17:16
|
|
|
|
(0174560)
|
hgbot
|
2025-01-22 17:16
|
|
|
|
(0174561)
|
hgbot
|
2025-01-22 17:17
|
|
|
|
(0174562)
|
hgbot
|
2025-01-22 17:17
|
|
|
|
(0174563)
|
hgbot
|
2025-01-22 17:18
|
|
|
|
(0174564)
|
hgbot
|
2025-01-22 17:19
|
|
|
|
(0174565)
|
hgbot
|
2025-01-22 17:19
|
|
|
|
(0174566)
|
hgbot
|
2025-01-22 17:20
|
|
|
|
(0174567)
|
hgbot
|
2025-01-22 17:20
|
|
|
|
(0174568)
|
hgbot
|
2025-01-22 17:21
|
|
|