Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0030832 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 07. Sales management | major | always | 2015-09-16 11:43 | 2015-11-23 21:16 | |||
Reporter | egoitz | View Status | public | |||||
Assigned To | AtulOpenbravo | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 5fa35abaa27e | ||||
Projection | none | ETA | none | Target Version | 3.0PR16Q1 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | vmromanos | |||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 37541 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0030832: potential unneeded storage detail updates on changes for m_inoutlines | |||||||
Description | M_INOUTLINE_TRG is invoking M_UPDATE_INVENTORY whenever there is an update/insert or delete. | |||||||
Steps To Reproduce | Change any field of a inout line (i.e description) and check that the function M_update_inventory is executed. That is causing contention on environements with big amount of data and high concurrency using the warehouse picking module | |||||||
Tags | Performance | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0080850) hgbot (developer) 2015-10-07 09:27 |
Repository: erp/devel/pi Changeset: 5fa35abaa27e94fb885e4cbe2a87359dcd69a050 Author: Atul Gaware <atul.gaware <at> openbravo.com> Date: Mon Oct 05 14:56:31 2015 +0530 URL: http://code.openbravo.com/erp/devel/pi/rev/5fa35abaa27e94fb885e4cbe2a87359dcd69a050 [^] Fixes Issue 30832:potential unneeded storage detail updates on changes for m_inoutlines Check provided in M_InOutLine_Trg before update operation whether any of the following is changed in M_InOutLine. Organization, Product, UOM, AttributeSetInstance, Movement Quantity, ProductUom, Order Quantity. Junit test cases to test M_InoutLine_Trg covers following scenarios. - Insert M_InOutLine. - Set Product Null in the M_InOutLine. - Set Product in M_InOutLine where Product was null. - Set Description in M_InOutLine. - Delete a M_InOutLine. --- M src-db/database/model/triggers/M_INOUTLINE_TRG.xml A src-test/src/org/openbravo/test/db/model/triggers/M_inoutlinetrgTest.java --- |
(0080851) hgbot (developer) 2015-10-07 09:27 |
Repository: erp/devel/pi Changeset: e8cf3936f4c15bd228d88f979947b2adbe9a1e40 Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com> Date: Wed Oct 07 09:25:04 2015 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/e8cf3936f4c15bd228d88f979947b2adbe9a1e40 [^] Related to issue 30832: code review improvements M_INOUTLINE_TRG: + Updated copyright + Added more conditions to the if clause when updating + Usage of MOVEMENTQTY and QUANTITYORDER instead of v_qtyold, v_qty, v_qtyorderold and v_qtyorder as these variables always make true the if condition (so the fix would useless) + In the update part, update first the inventory for the old product/locator as it was done before the refactor M_inoutlinetrgTest.java: + Totally rewritten of the JUnit + Support for more scenarios: update locator, update attributesetinstance, work with several lines, purchase and sales flows, etc. + Fixed scenarios not properly working before + Avoid HQL injection --- M src-db/database/model/triggers/M_INOUTLINE_TRG.xml M src-test/src/org/openbravo/test/db/model/triggers/M_inoutlinetrgTest.java --- |
(0080852) vmromanos (viewer) 2015-10-07 09:28 |
Code review + testing OK |
(0082111) hudsonbot (viewer) 2015-11-23 21:16 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/7b56bebaaa88 [^] Maturity status: Test |
(0082112) hudsonbot (viewer) 2015-11-23 21:16 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/7b56bebaaa88 [^] Maturity status: Test |
![]() |
|||
Date Modified | Username | Field | Change |
2015-09-16 11:43 | egoitz | New Issue | |
2015-09-16 11:43 | egoitz | Assigned To | => platform |
2015-09-16 11:43 | egoitz | OBNetwork customer | => Yes |
2015-09-16 11:43 | egoitz | Modules | => Core |
2015-09-16 11:43 | egoitz | Support ticket | => 37541 |
2015-09-16 11:43 | egoitz | Resolution time | => 1443564000 |
2015-09-16 11:43 | egoitz | Triggers an Emergency Pack | => No |
2015-09-16 11:44 | egoitz | Assigned To | platform => Triage Finance |
2015-09-16 11:44 | egoitz | Category | A. Platform => 07. Sales management |
2015-09-16 11:44 | egoitz | Relationship added | related to 0030526 |
2015-09-16 12:04 | egoitz | Priority | urgent => immediate |
2015-09-16 12:08 | egoitz | Tag Attached: Performance | |
2015-09-24 01:59 | AtulOpenbravo | Summary | potential unneeded storage detail updates on changes for movement lines => potential unneeded storage detail updates on changes for m_inoutlines |
2015-09-25 08:22 | vmromanos | Status | new => scheduled |
2015-09-25 08:22 | vmromanos | Assigned To | Triage Finance => AtulOpenbravo |
2015-10-01 09:55 | vmromanos | Target Version | 3.0PR15Q4 => 3.0PR16Q1 |
2015-10-07 09:27 | hgbot | Checkin | |
2015-10-07 09:27 | hgbot | Note Added: 0080850 | |
2015-10-07 09:27 | hgbot | Status | scheduled => resolved |
2015-10-07 09:27 | hgbot | Resolution | open => fixed |
2015-10-07 09:27 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/5fa35abaa27e94fb885e4cbe2a87359dcd69a050 [^] |
2015-10-07 09:27 | hgbot | Checkin | |
2015-10-07 09:27 | hgbot | Note Added: 0080851 | |
2015-10-07 09:28 | vmromanos | Review Assigned To | => vmromanos |
2015-10-07 09:28 | vmromanos | Note Added: 0080852 | |
2015-10-07 09:28 | vmromanos | Status | resolved => closed |
2015-11-23 21:16 | hudsonbot | Checkin | |
2015-11-23 21:16 | hudsonbot | Note Added: 0082111 | |
2015-11-23 21:16 | hudsonbot | Checkin | |
2015-11-23 21:16 | hudsonbot | Note Added: 0082112 |
Copyright © 2000 - 2009 MantisBT Group |