Openbravo Issue Tracking System - Modules
View Issue Details
0056486ModulesOpenbravo Business APIpublic2024-09-18 10:242024-10-18 10:19
vmromanos 
caristu 
normalmajoralways
acknowledgedopen 
5
 
 
0056486: OneToManyEntityPropertyMapping doesn't respect Selected Properties On Entity Referencing
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.

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"
    }
No tags attached.
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 
Issue History
2024-09-18 10:24vmromanosNew Issue
2024-09-18 10:24vmromanosAssigned To => Triage Platform Conn
2024-09-18 10:39vmromanosRelationship addedrelated to 0056485
2024-09-19 09:39adrianromeroAssigned ToTriage Platform Conn => caristu
2024-09-19 09:39adrianromeroStatusnew => acknowledged
2024-09-27 08:52hgbotNote Added: 0169669
2024-09-27 11:16hgbotNote Added: 0169680
2024-10-11 13:08hgbotNote Added: 0170280
2024-10-11 13:11hgbotNote Added: 0170281
2024-10-11 13:12hgbotNote Added: 0170282
2024-10-11 13:14hgbotNote Added: 0170283
2024-10-11 13:16hgbotNote Added: 0170284
2024-10-11 13:17hgbotNote Added: 0170285
2024-10-11 13:18hgbotNote Added: 0170286
2024-10-11 13:20hgbotNote Added: 0170287
2024-10-11 13:22hgbotNote Added: 0170288
2024-10-11 13:24hgbotNote Added: 0170289
2024-10-11 13:27hgbotNote Added: 0170290
2024-10-11 13:28hgbotNote Added: 0170291
2024-10-18 08:08hgbotNote Added: 0170552
2024-10-18 08:10hgbotNote Added: 0170553
2024-10-18 08:14hgbotNote Added: 0170554
2024-10-18 10:09caristuRelationship addedrelated to 0054979
2024-10-18 10:19caristuRelationship addedrelated to 0048665
2024-10-18 10:19caristuRelationship deletedrelated to 0054979

Notes
(0169669)
hgbot   
2024-09-27 08:52   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.external.integration/-/merge_requests/47 [^]
(0169680)
hgbot   
2024-09-27 11:16   
Merge Request created: https://gitlab.com/openbravo/ci/modules/org.openbravo.service.external.integration.tests/-/merge_requests/26 [^]
(0170280)
hgbot   
2024-10-11 13:08   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/345 [^]
(0170281)
hgbot   
2024-10-11 13:11   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.distributionorder.api/-/merge_requests/38 [^]
(0170282)
hgbot   
2024-10-11 13:12   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.financial.multitaxcategory.api/-/merge_requests/11 [^]
(0170283)
hgbot   
2024-10-11 13:14   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.litigations/-/merge_requests/10 [^]
(0170284)
hgbot   
2024-10-11 13:16   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.loyalty.programs.api/-/merge_requests/11 [^]
(0170285)
hgbot   
2024-10-11 13:17   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.purchase.api/-/merge_requests/7 [^]
(0170286)
hgbot   
2024-10-11 13:18   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/126 [^]
(0170287)
hgbot   
2024-10-11 13:20   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api.complementary/-/merge_requests/5 [^]
(0170288)
hgbot   
2024-10-11 13:22   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api.multiupc/-/merge_requests/8 [^]
(0170289)
hgbot   
2024-10-11 13:24   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf.api/-/merge_requests/18 [^]
(0170290)
hgbot   
2024-10-11 13:27   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations.api/-/merge_requests/18 [^]
(0170291)
hgbot   
2024-10-11 13:28   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders/-/merge_requests/186 [^]
(0170552)
hgbot   
2024-10-18 08:08   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api.france.ecotax/-/merge_requests/9 [^]
(0170553)
hgbot   
2024-10-18 08:10   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api.giftcards/-/merge_requests/43 [^]
(0170554)
hgbot   
2024-10-18 08:14   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.api/-/merge_requests/24 [^]