erpcya / adempiere

ADempiere Business Suite ERP/CRM/MFG/SCM/POS done the Bazaar way in an open and unabated fashion. Focus is on the Community that includes Subject Matter Specialists, Implementors and End-Users.
www.adempiere.net
GNU General Public License v2.0
2 stars 5 forks source link

Inventory Validation by Warehouse at Before Save Distribution Line #71

Open carlosaparadam opened 3 months ago

carlosaparadam commented 3 months ago

Inventory Validation by Warehouse at Before Save Distribution Line

Currently at before save an Distribution Order Line with Attribute set instance is validated on global Warehouse although the Warehouse Location is set in Distribution Order Line.

This change allow validate inventory only on Warehouse Location if the Distribution line has Attribute set instance Selected

-----------> MDDOrderLine.beforeSave: Qty - Stock=22000.000000000000, Ordered=25000.000000000000 [35565]
===========> MDDOrderLine.saveError: QtyInsufficient - =22000.000000000000 [35565]
-------------------------------
-----------> MDDOrderLine.save: beforeSave failed - MDDOrderLine[0,Line=0,Ordered=25000.000000000000,Delivered=0,Reserved=0] [35565]
===========> ProcessQualityAnalysisAction.process: =22000.000000000000 [35565]
org.adempiere.exceptions.AdempiereException: =22000.000000000000
at org.compiere.model.PO.saveEx(PO.java:2321)