Пример #1
0
	def get_new_reporting(self,args):
		#webnotes.errprint(args)
		dic=eval(args)
		#webnotes.errprint((dic['date']))
		today = nowdate()
		d = Document("Reporting Person History")
		d.ad_type='Customer'
		d.from_date = (dic['date'])
		d.to_date=today
		d.client = (dic['client'])
		d.report_to= (dic['report_to'])
		d.save()
		return{
		"report_to":''
		}
Пример #2
0
	def get_new_equipmentid(self,args):
		dic=eval(args)
		d = Document("Reporting Person History")
		d.ad_type='Transformer'
		d.plant=(dic['plant'])
		d.client = (dic['client'])
		d.sub_station= (dic['sub station'])
		d.functional_location=(dic['functional_location'])
		d.equipment_id=(dic['equipment_id'])
		d.save()
		return{
		"equipment_id":'',
		"sample_no":'',
		"make":'',
		"rating":'',
		"ratio":'',
		"phase":'',
		"year_of_mfg":'',
		"serial_no":'',
		"voltage_ratio":''
		}