brotherton-erpnext/buying/search_criteria/purchase_in_transit/purchase_in_transit.py
2011-07-01 13:34:41 +05:30

7 lines
310 B
Python

#check mendatory
if not filter_values.get('posting_date') or not filter_values.get('posting_date1'):
msgprint("Please select From Posting Date and To Posting Date in 'Set Filters' section")
raise Exception
else:
from_date = filter_values.get('posting_date')
to_date = filter_values.get('posting_date1')