[Erp5-report] r17054 - /erp5/trunk/products/ERP5/Document/Inventory.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 19 17:06:19 CEST 2007
Author: aurel
Date: Fri Oct 19 17:06:17 2007
New Revision: 17054
URL: http://svn.erp5.org?rev=17054&view=rev
Log:
set uid on tmp line as the one of movement, and thus make possible
join between stock and movement on inventory line
Modified:
erp5/trunk/products/ERP5/Document/Inventory.py
Modified: erp5/trunk/products/ERP5/Document/Inventory.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Inventory.py?rev=17054&r1=17053&r2=17054&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Inventory.py (original)
+++ erp5/trunk/products/ERP5/Document/Inventory.py Fri Oct 19 17:06:17 2007
@@ -137,7 +137,6 @@
# Browse all movements on inventory and create diff line when necessary
not_used_inventory_dict = {}
- inventory_uid = self.getUid()
inventory_id = self.getId()
for movement in self.getMovementList():
if movement.getResourceValue() is not None and \
@@ -172,7 +171,7 @@
# Create tmp movement with only diff between inventory
# and previous stock values
if diff_quantity != 0:
- kwd = {'uid': inventory_uid,
+ kwd = {'uid': movement.getUid(),
'start_date': start_date}
if variation_text is not None:
variation_list = variation_text.split('\n')
@@ -196,6 +195,7 @@
# Now create line to remove some subvariation text not present
# in new inventory
+ inventory_uid = self.getUid()
for resource_and_variation_key in not_used_inventory_dict.keys():
inventory_by_subvariation_dict = \
not_used_inventory_dict[resource_and_variation_key]
More information about the Erp5-report
mailing list