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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0056486
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Openbravo Business APImajoralways2024-09-18 10:242024-10-18 10:19
ReportervmromanosView Statuspublic 
Assigned Tocaristu 
PrioritynormalResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Regression introduced in release
Summary

0056486: OneToManyEntityPropertyMapping doesn't respect Selected Properties On Entity Referencing

DescriptionI 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 ReproduceExport 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"
    }
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0048665 closedcaristu Modules Improve EntityPropertyMapping to support exporting a subset of properties 
related to feature request 0056485 closedvmromanos Openbravo ERP [RM-16264] OBAWOTask API entity mapping refactor 

-  Notes
(0169669)
hgbot (developer)
2024-09-27 08:52

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.external.integration/-/merge_requests/47 [^]
(0169680)
hgbot (developer)
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 (developer)
2024-10-11 13:08

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/345 [^]
(0170281)
hgbot (developer)
2024-10-11 13:11

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.distributionorder.api/-/merge_requests/38 [^]
(0170282)
hgbot (developer)
2024-10-11 13:12

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.financial.multitaxcategory.api/-/merge_requests/11 [^]
(0170283)
hgbot (developer)
2024-10-11 13:14

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.litigations/-/merge_requests/10 [^]
(0170284)
hgbot (developer)
2024-10-11 13:16

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.loyalty.programs.api/-/merge_requests/11 [^]
(0170285)
hgbot (developer)
2024-10-11 13:17

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.purchase.api/-/merge_requests/7 [^]
(0170286)
hgbot (developer)
2024-10-11 13:18

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/126 [^]
(0170287)
hgbot (developer)
2024-10-11 13:20

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api.complementary/-/merge_requests/5 [^]
(0170288)
hgbot (developer)
2024-10-11 13:22

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api.multiupc/-/merge_requests/8 [^]
(0170289)
hgbot (developer)
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 (developer)
2024-10-11 13:27

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations.api/-/merge_requests/18 [^]
(0170291)
hgbot (developer)
2024-10-11 13:28

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders/-/merge_requests/186 [^]
(0170552)
hgbot (developer)
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 (developer)
2024-10-18 08:10

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api.giftcards/-/merge_requests/43 [^]
(0170554)
hgbot (developer)
2024-10-18 08:14

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.api/-/merge_requests/24 [^]

- 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:39 vmromanos Relationship added related to 0056485
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 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker