Openbravo Issue Tracking System - Modules
View Issue Details
0053932ModulesOpenbravo Business APIpublic2023-11-14 16:102023-11-20 00:34
vmromanos 
vmromanos 
normalminoralways
closedfixed 
5
 
 
0053932: Add currency property to ShipmentInOutLine.orderLine object (export)
The export API for ShipmentInOutLine includes an optional object "orderLine" with some information about prices. Example:

                    "orderLine": {
                        "id": "72E63EA391224D0EAC7A633EA0985532",
                        "lineNo": 20,
                        "orderDocumentNo": "CMS1000000",
                        "grossUnitPrice": 60,
                        "netUnitPrice": 49.59
                    }

To properly understand these prices, the currency should be displayed too. Example:

                    "orderLine": {
                        "id": "72E63EA391224D0EAC7A633EA0985532",
                        "lineNo": 20,
                        "orderDocumentNo": "CMS1000000",
                        "grossUnitPrice": 60,
                        "netUnitPrice": 49.59,
                        "currency": "EUR"
                    }
In Postman, open the Openbravo API | Transactional Data | Export | Goods Receipt | Filtering by ID Goods Receipt.

See that there are several orderLine objects with price information but without currency.
Add currency property to orderLine object
No tags attached.
depends on defect 0053906 closed vmromanos Add documentation for Java Property Mapping Handlers - OMNI 
Issue History
2023-11-14 16:10vmromanosNew Issue
2023-11-14 16:10vmromanosAssigned To => vmromanos
2023-11-14 16:10vmromanosIssue generated from0053906
2023-11-14 16:10vmromanosRelationship addeddepends on 0053906
2023-11-14 16:11vmromanosStatusnew => scheduled
2023-11-14 16:19hgbotNote Added: 0157140
2023-11-20 00:34hgbotNote Added: 0157320
2023-11-20 00:34hgbotResolutionopen => fixed
2023-11-20 00:34hgbotStatusscheduled => closed
2023-11-20 00:34hgbotNote Added: 0157321

Notes
(0157140)
hgbot   
2023-11-14 16:19   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/212 [^]
(0157320)
hgbot   
2023-11-20 00:34   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/212 [^]
(0157321)
hgbot   
2023-11-20 00:34   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 28d1d7c89ebd85e10af33e042de4979cdfc5f44d
Author: Víctor Martínez Romanos <victor.martinez@openbravo.com>
Date: 19-11-2023 23:34:44
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/28d1d7c89ebd85e10af33e042de4979cdfc5f44d [^]

Fixed ISSUE-53932: API, Added currency to ShipmentInoutline.orderLine object

---
M src/org/openbravo/api/mappings/shipmentinoutline/ShipmentInOutLineJavaPropertyMappingHandler.java
---