mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
@@ -580,6 +580,7 @@ class DocType(TransactionBase):
|
|||||||
# Get Warehouse
|
# Get Warehouse
|
||||||
def get_warehouse(self):
|
def get_warehouse(self):
|
||||||
w = sql("select warehouse from `tabPOS Setting` where ifnull(user,'') = '%s' and company = '%s'" % (session['user'], self.doc.company))
|
w = sql("select warehouse from `tabPOS Setting` where ifnull(user,'') = '%s' and company = '%s'" % (session['user'], self.doc.company))
|
||||||
|
w = w and w[0][0] or ''
|
||||||
if not w:
|
if not w:
|
||||||
ps = sql("select name, warehouse from `tabPOS Setting` where ifnull(user,'') = '' and company = '%s'" % self.doc.company)
|
ps = sql("select name, warehouse from `tabPOS Setting` where ifnull(user,'') = '' and company = '%s'" % self.doc.company)
|
||||||
if not ps:
|
if not ps:
|
||||||
|
|||||||
@@ -251,6 +251,8 @@ def execute(patch_no):
|
|||||||
reload_doc('stock','doctype','item_customer_detail')
|
reload_doc('stock','doctype','item_customer_detail')
|
||||||
elif patch_no == 344:
|
elif patch_no == 344:
|
||||||
sql("delete from `tabDocFormat` where ifnull(format, '') = '' and parent = 'Delivery Note'")
|
sql("delete from `tabDocFormat` where ifnull(format, '') = '' and parent = 'Delivery Note'")
|
||||||
|
reload_doc('stock', 'doctype', 'delivery_note_detail')
|
||||||
|
reload_doc('stock', 'doctype', 'item_customer_detail')
|
||||||
elif patch_no == 345:
|
elif patch_no == 345:
|
||||||
# rerun 343 (merge confict)
|
# rerun 343 (merge confict)
|
||||||
reload_doc('stock','doctype','item_customer_detail')
|
reload_doc('stock','doctype','item_customer_detail')
|
||||||
|
|||||||
Reference in New Issue
Block a user