Openbravo Issue Tracking System - Retail Modules
View Issue Details
0053240Retail ModulesRetail APIpublic2023-08-18 13:132023-08-24 09:12
lmonreal 
fermin_gascon 
urgentmajoralways
closedfixed 
5
 
 
No
0053240: "netUnitPrice" property wrongly mapped in Goods receipt
In the JSON of goods receipt there is a property "netUnitPrice".

This property is displaying a wrong value, it is displaying the Line net amount instead of the Net Unit price.

See attachment
1. Do a PO
2. Receive it
3. Check api values and see netUnitPrice displays Line net amount instead of Net Unit price
"netUnitPrice".=Net Unit price
No tags attached.
related to feature request 0050364 closed fermin_gascon Openbravo ERP It will be nice to have and api to export goods receipts and shipments to external services 
png ERROR API.png (193,416) 2023-08-18 13:13
https://issues.openbravo.com/file_download.php?file_id=18885&type=bug
png
Issue History
2023-08-18 13:13lmonrealNew Issue
2023-08-18 13:13lmonrealAssigned To => Triage Platform Conn
2023-08-18 13:13lmonrealFile Added: ERROR API.png
2023-08-18 13:13lmonrealTriggers an Emergency Pack => No
2023-08-18 13:13lmonrealIssue Monitored: alfonso_alcalde
2023-08-18 13:14lmonrealAssigned ToTriage Platform Conn => fermin_gascon
2023-08-22 14:40hgbotNote Added: 0153794
2023-08-22 14:40hgbotNote Added: 0153795
2023-08-22 14:50fermin_gasconRelationship addedrelated to 0050364
2023-08-22 14:51fermin_gasconStatusnew => acknowledged
2023-08-22 14:51fermin_gasconStatusacknowledged => scheduled
2023-08-22 14:51fermin_gasconStatusscheduled => resolved
2023-08-22 14:51fermin_gasconResolutionopen => fixed
2023-08-24 09:12hgbotNote Added: 0153869
2023-08-24 09:12hgbotStatusresolved => closed
2023-08-24 09:12hgbotNote Added: 0153870
2023-08-24 09:12hgbotNote Added: 0153871
2023-08-24 09:12hgbotNote Added: 0153872

Notes
(0153794)
hgbot   
2023-08-22 14:40   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/180 [^]
(0153795)
hgbot   
2023-08-22 14:40   
Merge Request created: https://gitlab.com/openbravo/ci/modules/org.openbravo.api.tests/-/merge_requests/43 [^]
(0153869)
hgbot   
2023-08-24 09:12   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/180 [^]
(0153870)
hgbot   
2023-08-24 09:12   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: c4c959df408cfeed718bfcb3bed31e3fc1aa11a4
Author: Fermin Gascon <fermin.gascon@openbravo.com>
Date: 22-08-2023 12:42:04
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/c4c959df408cfeed718bfcb3bed31e3fc1aa11a4 [^]

Fixed ISSUE-53240: Correction in lines mapping, now netUnitPrice value is returned correctly

---
M src/org/openbravo/api/mappings/shipmentinoutline/ShipmentInOutLineJavaPropertyMappingHandler.java
---
(0153871)
hgbot   
2023-08-24 09:12   
Merge request merged: https://gitlab.com/openbravo/ci/modules/org.openbravo.api.tests/-/merge_requests/43 [^]
(0153872)
hgbot   
2023-08-24 09:12   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/ci/modules/org.openbravo.api.tests [^]
Changeset: bbaf4e1ff241b24fb59bff5945cd6d47f425c573
Author: Fermin Gascon <fermin.gascon@openbravo.com>
Date: 22-08-2023 14:35:58
URL: https://gitlab.com/openbravo/ci/modules/org.openbravo.api.tests/-/commit/bbaf4e1ff241b24fb59bff5945cd6d47f425c573 [^]

Fixed ISSUE-53240: corrections in test, after correction in netUnitPrice mapping

---
M src-test/data/export/filter/shipmentInOut/goodsReceipt/goodsReceiptByDate.json
M src-test/data/export/filter/shipmentInOut/goodsReceipt/goodsReceiptByDateRange.json
M src-test/data/export/filter/shipmentInOut/goodsReceipt/goodsReceiptByDocumentNo.json
M src-test/data/export/filter/shipmentInOut/goodsReceipt/goodsReceiptById.json
M src-test/data/export/filter/shipmentInOut/goodsShipment/goodsShipmentByDate.json
M src-test/data/export/filter/shipmentInOut/goodsShipment/goodsShipmentByDateRange.json
M src-test/data/export/filter/shipmentInOut/returnMaterialReceipt/returnMaterialReceiptById.json
M src-test/data/export/filter/shipmentInOut/returnToVendorShipment/returnToVendorShipmentById.json
---