Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0012758 | Openbravo ERP | 05. Production management | public | 2010-03-22 12:43 | 2010-05-20 00:00 | |||||||
Reporter | adrianromero | |||||||||||
Assigned To | harikrishnan | |||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | 2.50MP17 | Fixed in Version | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | No | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0012758: Exception executing 'MA_PRODUCTIONRUN_STANDARD" when working with negative stocks | |||||||||||
Description | Working allowing negative stocks can raise an issue in the PL function "ma_productionrun_standard". In this function a "notenoughstocked" error is raised in line 340: IF (v_QtyAcumulated < v_DoneQuantity*Cur_WRPUsed.MovementQty) THEN v_Message := '@NotEnoughStocked@: ' || Cur_WRPUsed.pname; RAISE_APPLICATION_ERROR(-20000, v_Message); END IF; In this block, instead or raising one exception it has to be checked if it is allowed in the client negative stock and if it is allowed then execute an extra insertion taking product stock from no matter what warehouse and no matter what attributes etc. When inserting this product stock info it also has to be checked the var "v_GlobalUse" to know if whether has to be inserted into the table "ma_global_use or in the "m_production line". And if it is not allowed negative stock then raise the exception. Something similar to the previous logic is done in the function "m_inout_create" you can use as an example in the lines 466- . | |||||||||||
Steps To Reproduce | * Testing of the issue: To test the issue, follow the steps in the issue 12619 bugnotes.Test it two scenario one with set in the client Allow Negative=true and other one with false. * Explanation of the changeset that fixes the issue: The changeset that fix the issue consist of the insert statement in globaluse table and production line table if the client has set the allow negative stock =true. * Other areas affected by the changeset: No other areas are affected because apart from create standards button no other places this procedure is called. | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2010-03-22 12:43 | adrianromero | New Issue | ||||||||||
2010-03-22 12:43 | adrianromero | Assigned To | => adrianromero | |||||||||
2010-03-22 12:43 | adrianromero | OBNetwork customer | => No | |||||||||
2010-03-22 12:44 | adrianromero | Relationship added | related to 0012619 | |||||||||
2010-03-23 10:59 | adrianromero | Status | new => scheduled | |||||||||
2010-03-23 10:59 | adrianromero | fix_in_branch | => pi | |||||||||
2010-03-23 11:00 | adrianromero | Target Version | => 2.50MP15 | |||||||||
2010-03-23 11:00 | adrianromero | fix_in_branch | pi => | |||||||||
2010-05-01 08:43 | harikrishnan | Assigned To | adrianromero => harikrishnan | |||||||||
2010-05-01 08:46 | hgbot | Checkin | ||||||||||
2010-05-01 08:46 | hgbot | Note Added: 0026831 | ||||||||||
2010-05-01 08:46 | hgbot | Status | scheduled => resolved | |||||||||
2010-05-01 08:46 | hgbot | Resolution | open => fixed | |||||||||
2010-05-01 08:46 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/cb7049cc054328459aec708756fe826841187353 [^] | |||||||||
2010-05-01 08:51 | harikrishnan | Note Added: 0026832 | ||||||||||
2010-05-17 09:47 | psarobe | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=368#r368 | |||||||||
2010-05-18 12:12 | gorka_gil | Target Version | 2.50MP15 => 2.50MP17 | |||||||||
2010-05-18 21:43 | hudsonbot | Checkin | ||||||||||
2010-05-18 21:43 | hudsonbot | Note Added: 0027469 | ||||||||||
2010-05-19 07:43 | arunkumar | Note Added: 0027538 | ||||||||||
2010-05-19 07:43 | arunkumar | Status | resolved => closed | |||||||||
2010-05-20 00:00 | anonymous | sf_bug_id | 0 => 3004337 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|