mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
refactored defaults, bin material request wip
This commit is contained in:
@@ -16,7 +16,9 @@
|
||||
|
||||
#get company
|
||||
from __future__ import unicode_literals
|
||||
company = filter_values.get('company') or get_defaults()['company']
|
||||
|
||||
import webnotes.defaults
|
||||
company = filter_values.get('company') or webnotes.defaults.get_user_default('company')
|
||||
|
||||
# To date
|
||||
if not filter_values.get('clearance_date1'):
|
||||
|
||||
@@ -16,7 +16,9 @@
|
||||
|
||||
#get company
|
||||
from __future__ import unicode_literals
|
||||
company = filter_values.get('company') or get_defaults()['company']
|
||||
|
||||
import webnotes.defaults
|
||||
company = filter_values.get('company') or webnotes.defaults.get_user_default('company')
|
||||
|
||||
#get company letter head
|
||||
l_head = sql("select letter_head from `tabCompany` where name='%s'" % company)
|
||||
|
||||
@@ -16,7 +16,9 @@
|
||||
|
||||
#get company
|
||||
from __future__ import unicode_literals
|
||||
company = filter_values.get('company') or get_defaults()['company']
|
||||
|
||||
import webnotes.defaults
|
||||
company = filter_values.get('company') or webnotes.defaults.get_user_default('company')
|
||||
|
||||
#get company letter head
|
||||
l_head = sql("select letter_head from `tabCompany` where name='%s'" % company)
|
||||
|
||||
Reference in New Issue
Block a user