mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 03:29:16 +00:00
added about us page and settings
This commit is contained in:
@@ -31,7 +31,8 @@ class DocType:
|
||||
self.doc.name = self.doc.supplier + '-' + self.doc.address_type
|
||||
elif self.doc.sales_partner:
|
||||
self.doc.name = self.doc.sales_partner + '-' + self.doc.address_type
|
||||
|
||||
elif self.doc.address_title:
|
||||
self.doc.address_title = self.doc.address_title + "-" + self.doc.address_type
|
||||
|
||||
def validate(self):
|
||||
self.validate_for_whom()
|
||||
|
||||
@@ -41,7 +41,7 @@ class DocType:
|
||||
d = d.replace(x, '')
|
||||
|
||||
# mobile no validation for erpnext gateway
|
||||
if webnotes.conn.webnotes.conn.get_value('SMS Settings', None, 'sms_gateway_url'):
|
||||
if webnotes.conn.get_value('SMS Settings', None, 'sms_gateway_url'):
|
||||
mob_no = d
|
||||
else:
|
||||
if not d.startswith("0") and len(d) == 10:
|
||||
|
||||
Reference in New Issue
Block a user