Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036955Openbravo ERP04. Warehouse managementpublic2017-08-25 16:502017-09-26 14:26
markmm82 
AtulOpenbravo 
normalminorhave not tried
closedfixed 
5
 
3.0PR17Q3.13.0PR17Q3.1 
aferraz
Core
No
0036955: New storage bins are created with Undefined-Overissue inventory status instead of Undefined by default
When new storage bin is created, it set as Undefined-Overissue its inventory
status by default. This allow negative stock in those locators and it shouldn't be the default behaviour.

By default, new storage bins created should be set with Undefined inventory status to don't allow negative stock.

Note: InitializeInventoryStatus.java modulescript should be adapted to set the inventory status with Undefined-Overissue if related client allows negative stock. Right now it is setting inventory status as Undefined if client doesn't allows negative stock.
Create a new warehouse.
Create a new Storage Bin to it, and notice inventory status field has Undefined-Overissue status by default.
Set Undefined as default inventory status when a new storagebin is created.
No tags attached.
blocks defect 00367233.0PR17Q4 closed AtulOpenbravo New storage bins are created with Undefined-Overissue inventory status instead of Undefined by default 
Issue History
2017-09-26 14:06aferrazTypedefect => backport
2017-09-26 14:06aferrazTarget Version => 3.0PR17Q3.1
2017-09-26 14:14aferrazAssigned Tomarkmm82 => AtulOpenbravo
2017-09-26 14:24hgbotCheckin
2017-09-26 14:24hgbotNote Added: 0099581
2017-09-26 14:24hgbotStatusscheduled => resolved
2017-09-26 14:24hgbotResolutionopen => fixed
2017-09-26 14:24hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/757a15bcdfb8a4fef656859cca918e07c9011e36 [^] => http://code.openbravo.com/erp/backports/3.0PR17Q3.1/rev/0c0cf571d7ae4ab035202ae31e6800b068d82206 [^]
2017-09-26 14:24hgbotCheckin
2017-09-26 14:24hgbotNote Added: 0099582
2017-09-26 14:24hgbotCheckin
2017-09-26 14:24hgbotNote Added: 0099583
2017-09-26 14:25hgbotCheckin
2017-09-26 14:25hgbotNote Added: 0099584
2017-09-26 14:26aferrazNote Added: 0099585
2017-09-26 14:26aferrazStatusresolved => closed
2017-09-26 14:26aferrazFixed in Version => 3.0PR17Q3.1

Notes
(0099581)
hgbot   
2017-09-26 14:24   
Repository: erp/backports/3.0PR17Q3.1
Changeset: 0c0cf571d7ae4ab035202ae31e6800b068d82206
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Thu Sep 21 20:24:21 2017 +0530
URL: http://code.openbravo.com/erp/backports/3.0PR17Q3.1/rev/0c0cf571d7ae4ab035202ae31e6800b068d82206 [^]

Fixes issue 36955: New storage bins are created with Undefined-Overissue status
instead of Undefined by default

** Set id of Undefined inventory status as default value for column m_inventorystatus_id
in m_locator table as well as tables and columns in application dictionary

** Adapt Initialize Inventory Status modulescript to set Undefined-overdue status to
locator of the clients where allow negative stock flag is set as Yes

---
M src-db/database/model/tables/M_LOCATOR.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-util/modulescript/build/classes/org/openbravo/modulescript/InitializeInventoryStatus.class
M src-util/modulescript/src/org/openbravo/modulescript/InitializeInventoryStatus.java
---
(0099582)
hgbot   
2017-09-26 14:24   
Repository: erp/backports/3.0PR17Q3.1
Changeset: c36f90271c606c8f3603613edc76ff839d343dfc
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu Sep 21 18:57:37 2017 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR17Q3.1/rev/c36f90271c606c8f3603613edc76ff839d343dfc [^]

Related to issue 36955: Fix modulescript limits

---
M src-util/modulescript/build/classes/org/openbravo/modulescript/InitializeInventoryStatus.class
M src-util/modulescript/src/org/openbravo/modulescript/InitializeInventoryStatus.java
---
(0099583)
hgbot   
2017-09-26 14:24   
Repository: erp/backports/3.0PR17Q3.1
Changeset: 6bc3f019779dbcfc3c655f46994b1523abde116f
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Sep 26 12:55:18 2017 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR17Q3.1/rev/6bc3f019779dbcfc3c655f46994b1523abde116f [^]

Related to issue 36955: Add preference to execute modulescript only once

---
M src-util/modulescript/build/classes/org/openbravo/modulescript/InitializeInventoryStatus.class
M src-util/modulescript/build/classes/org/openbravo/modulescript/InitializeInventoryStatusData.class
M src-util/modulescript/src/org/openbravo/modulescript/InitializeInventoryStatus.java
M src-util/modulescript/src/org/openbravo/modulescript/InitializeInventoryStatus_data.xsql
---
(0099584)
hgbot   
2017-09-26 14:25   
Repository: erp/backports/3.0PR17Q3.1
Changeset: 53c792d3f7815bd897344877f86d162be54888d5
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Sep 26 13:26:43 2017 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR17Q3.1/rev/53c792d3f7815bd897344877f86d162be54888d5 [^]

Related to issue 36955: Use attribute to create preference instead of property

---
M src-util/modulescript/build/classes/org/openbravo/modulescript/InitializeInventoryStatusData.class
M src-util/modulescript/src/org/openbravo/modulescript/InitializeInventoryStatus_data.xsql
---
(0099585)
aferraz   
2017-09-26 14:26   
Code review + Testing OK