def execute():
	import webnotes
	gd = webnotes.model.code.get_obj('Global Defaults')
	gd.doc.maintain_same_rate = 1
	gd.doc.save()
	gd.on_update()
	
def execute():
	import webnotes
	from webnotes.model.code import get_obj
	gd = get_obj('Global Defaults')
	gd.doc.maintain_same_rate = 1
	gd.doc.save()
	gd.on_update()
	
Maintain same rate throughout pur cycle: in global defaults, by default set true