Openbravo Issue Tracking System - Retail Modules | |||||||||||||
View Issue Details | |||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0054016 | Retail Modules | Retail API | public | 2023-11-23 12:17 | 2023-12-07 13:06 | ||||||||
Reporter | javietxe | ||||||||||||
Assigned To | ramprakash | ||||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | ||||||||
Status | closed | Resolution | fixed | ||||||||||
Platform | OS | 5 | OS Version | ||||||||||
Product Version | |||||||||||||
Target Version | Fixed in Version | ||||||||||||
Merge Request Status | |||||||||||||
Review Assigned To | aferraz | ||||||||||||
OBNetwork customer | |||||||||||||
Support ticket | |||||||||||||
Regression level | |||||||||||||
Regression date | |||||||||||||
Regression introduced in release | |||||||||||||
Regression introduced by commit | |||||||||||||
Triggers an Emergency Pack | No | ||||||||||||
Summary | 0054016: Wrong mapping in shipment lines | ||||||||||||
Description | Even 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 Solution | Set the field as "accepts null values" or change the column definition if it is really mandatory | ||||||||||||
Additional Information | |||||||||||||
Tags | No tags attached. | ||||||||||||
Relationships |
| ||||||||||||
Attached Files | mapping.png (12,654) 2023-11-23 12:17 https://issues.openbravo.com/file_download.php?file_id=19174&type=bug goodsshipments.png (102,446) 2023-11-27 11:51 https://issues.openbravo.com/file_download.php?file_id=19185&type=bug shipmentline.png (120,112) 2023-11-27 11:51 https://issues.openbravo.com/file_download.php?file_id=19186&type=bug | ||||||||||||
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 | bug_revision_view_page.php?rev_id=27187#r27187 | ||||||||||
2023-11-23 12:27 | javietxe | Proposed Solution updated | |||||||||||
2023-11-23 12:30 | javietxe | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=27191#r27191 | ||||||||||
2023-11-27 11:50 | javietxe | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=27199#r27199 | ||||||||||
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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|