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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0054016
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Retail APImajorhave not tried2023-11-23 12:172023-12-07 13:06
ReporterjavietxeView Statuspublic 
Assigned Toramprakash 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toaferraz
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0054016: Wrong mapping in shipment lines

DescriptionEven for shipment lines the link with the bin is not mandatory nor in the database nor in the backoffice, in the API mapping is set as not nullable. So if it exists this type of records, the API fails.

The bin of the line is set automatically when selecting the product in the dropdown, but it can be deleted.
Steps To Reproduce- Create a Shipment with a shipment line without setting a bin to it (or deleting it if it's automatically set)
--- Go to "Goods Movements" window
--- Create a new record and save it [goodsshipments.jpg]
--- Create a line. Wen selecting a product the bin will be set automatically. Delete it by hand [shipmentline.jpg]
- Through postman, do this call setting the date of the Shipment created
https://livebuilds.openbravo.com/context/retail_modules_pgsql_pi/ws/org.openbravo.api.ExportService/ShipmentInOut/goodsReceiptByMovementDate?movementDate=2012-07-24&_page=1&_pageSize=5 [^] [^]

Check that even the response has a JSON and the response code is a 200, the JSON is not complete.

Check also that in the openbravo.logs it exists a stacktrace with the error. In this example:
ERROR org.openbravo.service.web.BaseWebServiceServlet - Value of property bin is null but it does not accept null values
org.openbravo.base.exception.OBException: Value of property bin is null but it does not accept null values
Proposed SolutionSet the field as "accepts null values" or change the column definition if it is really mandatory
TagsNo tags attached.
Attached Filespng file icon mapping.png [^] (12,654 bytes) 2023-11-23 12:17


png file icon goodsshipments.png [^] (102,446 bytes) 2023-11-27 11:51


png file icon shipmentline.png [^] (120,112 bytes) 2023-11-27 11:51

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0054015 closedTriage Platform Conn Modules API failing but responding 200 

-  Notes
(0157729)
hgbot (developer)
2023-11-28 08:55

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/217 [^]
(0157952)
hgbot (developer)
2023-12-05 09:50

Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/217 [^]
(0158008)
hgbot (developer)
2023-12-07 12:54

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 4feab7901a81038ed3fc40a483f234b8240436b2
Author: Ram Prakash <ram.prakash@openbravo.com>
Date: 06-12-2023 12:52:37
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/4feab7901a81038ed3fc40a483f234b8240436b2 [^]

Fixes ISSUE-54016: Set the Field storageBin to accepts null values in GS Window

---
M src-db/database/sourcedata/OBEI_PROP_MAP_INSTANCE.xml
---

- Issue History
Date Modified Username Field Change
2023-11-23 12:17 javietxe New Issue
2023-11-23 12:17 javietxe Assigned To => Triage Platform Conn
2023-11-23 12:17 javietxe File Added: mapping.png
2023-11-23 12:17 javietxe Triggers an Emergency Pack => No
2023-11-23 12:18 javietxe Assigned To Triage Platform Conn => Triage Omni OMS
2023-11-23 12:24 javietxe Relationship added related to 0054015
2023-11-23 12:27 javietxe Description Updated View Revisions
2023-11-23 12:27 javietxe Proposed Solution updated
2023-11-23 12:30 javietxe Steps to Reproduce Updated View Revisions
2023-11-27 11:50 javietxe Steps to Reproduce Updated View Revisions
2023-11-27 11:51 javietxe File Added: goodsshipments.png
2023-11-27 11:51 javietxe File Added: shipmentline.png
2023-11-28 08:55 hgbot Note Added: 0157729
2023-12-05 09:50 hgbot Note Added: 0157952
2023-12-07 12:54 hgbot Resolution open => fixed
2023-12-07 12:54 hgbot Status new => resolved
2023-12-07 12:54 hgbot Note Added: 0158008
2023-12-07 12:57 aferraz Review Assigned To => aferraz
2023-12-07 12:57 aferraz Status resolved => closed
2023-12-07 13:06 aferraz Assigned To Triage Omni OMS => ramprakash


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker