details: https://code.openbravo.com/erp/devel/pi/rev/668effe90d34
changeset: 21062:668effe90d34
user: Carlos Aristu <carlos.aristu <at> openbravo.com>
date: Tue Sep 03 13:15:33 2013 +0200
summary: fixes issue 24631: Physical inventory should not generate
transactions under some circunstancies
diffstat:
src/org/openbravo/materialmgmt/InventoryCountProcess.java | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 407350b7255b -r 668effe90d34
src/org/openbravo/materialmgmt/InventoryCountProcess.java
--- a/src/org/openbravo/materialmgmt/InventoryCountProcess.java Tue Sep 03
12:48:56 2013 +0200
+++ b/src/org/openbravo/materialmgmt/InventoryCountProcess.java Tue Sep 03
13:15:33 2013 +0200
@@ -194,6 +194,8 @@
insert.append(" , " + AttributeSetInstance.ENTITY_NAME + " as asi");
insert.append(" , " + Product.ENTITY_NAME + " as p");
insert.append(" \nwhere e." + InventoryCountLine.PROPERTY_PHYSINVENTORY +
".id = :inv");
+ insert.append(" and e." + InventoryCountLine.PROPERTY_QUANTITYCOUNT + " !=
e."
+ + InventoryCountLine.PROPERTY_BOOKQUANTITY);
insert.append(" and u.id = :user");
insert.append(" and asi.id = COALESCE(e." +
InventoryCountLine.PROPERTY_ATTRIBUTESETVALUE
+ ".id , '0')");
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits