sales order linked with project
This commit is contained in:
parent
8b42531eba
commit
5c2bb9d9ed
@ -322,8 +322,9 @@ class DocType(TransactionBase):
|
||||
|
||||
|
||||
def pull_project_customer(self):
|
||||
res = webnotes.conn.sql("select customer from `tabProject` where name = '%s'"%self.doc.project_name)
|
||||
if res:
|
||||
res = webnotes.conn.sql("select customer from `tabProject` where name = '%s'" %
|
||||
self.doc.project_name)
|
||||
if res and res[0][0]:
|
||||
get_obj('DocType Mapper', 'Project-Sales Invoice').dt_map('Project', 'Sales Invoice', self.doc.project_name, self.doc, self.doclist, "[['Project', 'Sales Invoice']]")
|
||||
|
||||
def get_company_abbr(self):
|
||||
|
@ -80,8 +80,8 @@ class DocType(TransactionBase):
|
||||
|
||||
|
||||
def pull_project_customer(self):
|
||||
res = sql("select customer from `tabProject` where name = '%s'"%self.doc.project_name)
|
||||
if res:
|
||||
res = sql("select customer from `tabProject` where name = '%s'" % self.doc.project_name)
|
||||
if res and res[0][0]:
|
||||
get_obj('DocType Mapper', 'Project-Delivery Note').dt_map('Project', 'Delivery Note', self.doc.project_name, self.doc, self.doclist, "[['Project', 'Delivery Note']]")
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user