change modified datetime while updating so status
diff --git a/crm/doctype/sales_common/sales_common.py b/crm/doctype/sales_common/sales_common.py
index 68afed4..2f8c0e2 100644
--- a/crm/doctype/sales_common/sales_common.py
+++ b/crm/doctype/sales_common/sales_common.py
@@ -584,7 +584,7 @@
 	
 		if overflow_percent - tolerance > 0.0001:
 			item['max_allowed'] = flt(item['qty'] * (100+tolerance)/100)
-			item['reduce_by'] = cint(item[args['compare_field']] - item['max_allowed'])
+			item['reduce_by'] = item[args['compare_field']] - item['max_allowed']
 		
 			msgprint("""
 				Row #%(idx)s: Max qty allowed for <b>Item %(item_code)s</b> against <b>%(parenttype)s %(parent)s</b> is <b>%(max_allowed)s</b>. 
@@ -721,7 +721,8 @@
 						`tab%(target_parent_dt)s` 
 					set 
 						%(target_parent_field)s = 
-							(select sum(if(qty > ifnull(%(target_field)s, 0), %(target_field)s, qty))/sum(qty)*100 from `tab%(target_dt)s` where parent="%(name)s")
+							(select sum(if(qty > ifnull(%(target_field)s, 0), %(target_field)s, qty))/sum(qty)*100 from `tab%(target_dt)s` where parent="%(name)s"), 
+						modified = now()
 						where
 							name="%(name)s"
 					""" % args)