Openbravo Issue Tracking System - Retail Modules | |||||||||||||||||||||
View Issue Details | |||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||||
0049991 | Retail Modules | Retail API | public | 2022-08-12 07:26 | 2022-11-08 15:39 | ||||||||||||||||
Reporter | prakashmurugesan88 | ||||||||||||||||||||
Assigned To | prakashmurugesan88 | ||||||||||||||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||||
Product Version | |||||||||||||||||||||
Target Version | Fixed in Version | ||||||||||||||||||||
Merge Request Status | |||||||||||||||||||||
Review Assigned To | |||||||||||||||||||||
OBNetwork customer | No | ||||||||||||||||||||
Support ticket | |||||||||||||||||||||
Regression level | |||||||||||||||||||||
Regression date | |||||||||||||||||||||
Regression introduced in release | |||||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||||
Summary | 0049991: Check Constraint(m_storage_detail_check1) violation when we try to integrate physical inventory by API for some products | ||||||||||||||||||||
Description | In Physical Inventory API when trying to update a product(some products) quantity to '0'. Inventory is not imported. Following error appears in console: ERROR: new row for relation "m_storage_detail" violates check constraint "m_storage_detail_check1" | ||||||||||||||||||||
Steps To Reproduce | In Physical Inventory API try to update a product quantity to '0'. Prerequisite: Product must has stock qty in that warehouse and bin. Product must have entry M_STORAGE_DETAIL with QTYORDERONHAND, PREQTYORDERONHAND is not null. Check Inventory is not imported. Following error appears in console: ERROR: new row for relation "m_storage_detail" violates check constraint "m_storage_detail_check1" Detail: Failing row contains (ABAA38F137B64F0DA5E9B89BAB2821D9, C8F84269A01041ADB5E61ADCBDA575A8, 0, 100, null, 0, 0, 2022-07-29 00:00:00, 0, 0, FD0BE3FBD9BA4CDFB8523667F50DB389, B2C16DEF83824A98BB08E218E63EB798, Y, 2022-07-29 17:28:18, 100, 2022-07-29 17:28:18, 100, 62802F293E1A4DCE9013F7CB353905A8, 0, 0, null). Where: SQL statement "INSERT INTO M_STORAGE_DETAIL ( M_Storage_Detail_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, M_PRODUCT_ID, M_LOCATOR_ID, M_ATTRIBUTESETINSTANCE_ID, C_UOM_ID, M_PRODUCT_UOM_ID, QTYONHAND, QTYORDERONHAND, DATELASTINVENTORY, PREQTYONHAND, PREQTYORDERONHAND, M_REFINVENTORY_ID ) VALUES ( get_uuid(), p_client, p_org, 'Y', TO_DATE(NOW()), p_user, TO_DATE(NOW()), p_user, p_product, p_locator, v_attributesetinstance, p_uom, p_product_uom, COALESCE(p_qty, 0), v_qtyorder, p_datelastinventory, COALESCE(p_preqty, 0), v_preqtyorder, v_refinventoryid )" | ||||||||||||||||||||
Proposed Solution | |||||||||||||||||||||
Additional Information | |||||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||||
Relationships |
| ||||||||||||||||||||
Attached Files | |||||||||||||||||||||
Issue History | |||||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||||
2022-08-12 07:26 | prakashmurugesan88 | New Issue | |||||||||||||||||||
2022-08-12 07:26 | prakashmurugesan88 | Assigned To | => prakashmurugesan88 | ||||||||||||||||||
2022-08-12 07:26 | prakashmurugesan88 | OBNetwork customer | => No | ||||||||||||||||||
2022-08-12 07:26 | prakashmurugesan88 | Triggers an Emergency Pack | => No | ||||||||||||||||||
2022-08-12 07:26 | prakashmurugesan88 | Status | new => scheduled | ||||||||||||||||||
2022-08-12 07:36 | prakashmurugesan88 | Note Added: 0140079 | |||||||||||||||||||
2022-08-12 11:29 | hgbot | Resolution | open => fixed | ||||||||||||||||||
2022-08-12 11:29 | hgbot | Status | scheduled => resolved | ||||||||||||||||||
2022-08-12 11:29 | hgbot | Note Added: 0140092 | |||||||||||||||||||
2022-08-12 11:30 | vmromanos | Status | resolved => closed | ||||||||||||||||||
2022-08-24 08:22 | vmromanos | Relationship added | related to 0050039 | ||||||||||||||||||
2022-11-08 15:39 | rafaroda | Relationship added | related to 0050776 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|