Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0045477 | Openbravo ERP | 04. Warehouse management | public | 2020-11-23 12:22 | 2020-12-02 16:11 | |||||||
Reporter | gorkaion | |||||||||||
Assigned To | AtulOpenbravo | |||||||||||
Priority | high | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | PR21Q1 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0045477: Attribute required check in M_TRANSACTION_TRG trigger should allow when stock is zero | |||||||||||
Description | In the M_Transaction_TRG trigger there is a check to enforce that an attribute set instance is defined for products that requires attributes The trigger should allow to sell an attribute required item without attributes when the stock on hand of the product is zero. This is an scenario that happens on the POS when the preference to use attributes is not enabled. On this scenario when a product using attributes is sold the POS searches the available stock to get an attribute instance to use. When no stock is available there is no attribute instance to use and the 0 instance is used. With the current logic the transaction trigger won't allow to complete the execution as it is only allowed to use the 0 instance attribute when the quantity on hand is negative. | |||||||||||
Steps To Reproduce | Configure an AutoBOM product with no stock available on the parts. Try to sell it. | |||||||||||
Proposed Solution | Change the "v_qtyOnHand >= 0" to "v_qtyOnHand > 0". So the exception is only raised when the stock is Positive or the transaction is a Receipt. ELSIF (:NEW.M_INOUTLINE_ID IS NOT NULL) THEN SELECT io.issotrx INTO v_issotrx FROM m_inout io JOIN m_inoutline iol ON (iol.m_inout_id = io.m_inout_id) WHERE iol.m_inoutline_id = :NEW.m_inoutline_id; IF (v_issotrx = 'N' OR v_qtyOnHand >= 0) THEN RAISE_APPLICATION_ERROR(-20000, '@20112@' || ' - ' || v_Name) ; END IF; ELSE IF ( v_qtyOnHand >= 0) THEN RAISE_APPLICATION_ERROR(-20000, '@20112@' || ' - ' || v_Name) ; END IF; END IF; | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2020-11-23 12:22 | gorkaion | New Issue | ||||||||||
2020-11-23 12:22 | gorkaion | Assigned To | => Triage Finance | |||||||||
2020-11-23 12:22 | gorkaion | Modules | => Core | |||||||||
2020-11-23 12:22 | gorkaion | Resolution time | => 1607900400 | |||||||||
2020-11-23 12:22 | gorkaion | Triggers an Emergency Pack | => No | |||||||||
2020-11-23 12:22 | gorkaion | Issue generated from | 0044622 | |||||||||
2020-11-23 12:22 | gorkaion | Relationship added | related to 0044622 | |||||||||
2020-11-27 09:42 | dmiguelez | Assigned To | Triage Finance => AtulOpenbravo | |||||||||
2020-11-27 17:18 | AtulOpenbravo | Status | new => scheduled | |||||||||
2020-12-02 08:30 | AtulOpenbravo | Note Added: 0124681 | ||||||||||
2020-12-02 08:31 | AtulOpenbravo | Note Edited: 0124681 | bug_revision_view_page.php?bugnote_id=0124681#r21911 | |||||||||
2020-12-02 15:53 | hgbot | Note Added: 0124694 | ||||||||||
2020-12-02 16:11 | hgbot | Resolution | open => fixed | |||||||||
2020-12-02 16:11 | hgbot | Status | scheduled => closed | |||||||||
2020-12-02 16:11 | hgbot | Fixed in Version | => PR21Q1 | |||||||||
2020-12-02 16:11 | hgbot | Note Added: 0124695 | ||||||||||
2020-12-02 16:11 | hgbot | Note Added: 0124696 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|