mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-22 10:49:59 +00:00
Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
@@ -42,16 +42,16 @@ class DocType:
|
||||
def_list = [['fiscal_year',self.doc.current_fiscal_year],
|
||||
['company',self.doc.default_company],
|
||||
['currency',self.doc.default_currency],
|
||||
['price_list_name',self.doc.default_price_list],
|
||||
['price_list_currency', self.doc.default_price_list_currency],
|
||||
['item_group',self.doc.default_item_group],
|
||||
['customer_group',self.doc.default_customer_group],
|
||||
['cust_master_name',self.doc.cust_master_name],
|
||||
['supplier_type',self.doc.default_supplier_type],
|
||||
['price_list_name',self.doc.default_price_list or ''],
|
||||
['price_list_currency', self.doc.default_price_list_currency or ''],
|
||||
['item_group',self.doc.default_item_group or ''],
|
||||
['customer_group',self.doc.default_customer_group or ''],
|
||||
['cust_master_name',self.doc.cust_master_name or ''],
|
||||
['supplier_type',self.doc.default_supplier_type or ''],
|
||||
['supp_master_name',self.doc.supp_master_name],
|
||||
['territory',self.doc.default_territory],
|
||||
['stock_uom',self.doc.default_stock_uom],
|
||||
['fraction_currency',self.doc.default_currency_fraction],
|
||||
['territory',self.doc.default_territory or ''],
|
||||
['stock_uom',self.doc.default_stock_uom or ''],
|
||||
['fraction_currency',self.doc.default_currency_fraction or ''],
|
||||
['valuation_method',self.doc.default_valuation_method]]
|
||||
|
||||
for d in def_list:
|
||||
|
||||
@@ -82,9 +82,12 @@ class DocType:
|
||||
|
||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||
def update_series_start(self):
|
||||
ser_det = sql("select name from `tabSeries` where name = %s", self.doc.prefix)
|
||||
if ser_det:
|
||||
sql("update `tabSeries` set current = '%s' where name = '%s'" % (self.doc.starts_from-1,self.doc.prefix))
|
||||
if self.doc.prefix:
|
||||
ser_det = sql("select name from `tabSeries` where name = %s", self.doc.prefix)
|
||||
if ser_det:
|
||||
sql("update `tabSeries` set current = '%s' where name = '%s'" % (self.doc.starts_from-1,self.doc.prefix))
|
||||
else:
|
||||
sql("insert into tabSeries (name, current) values (%s,%s)",(cstr(self.doc.prefix),cint(self.doc.starts_from)-1))
|
||||
msgprint("Series Updated Successfully")
|
||||
else:
|
||||
sql("insert into tabSeries (name, current) values (%s,%s)",(cstr(self.doc.prefix),cint(self.doc.starts_from)-1))
|
||||
msgprint("Series Updated Successfully")
|
||||
msgprint("Please select prefix first")
|
||||
|
||||
@@ -168,7 +168,7 @@ SetupData = function(cnty){
|
||||
['Manage Trash',2,'Trash','','Restore trashed items'],
|
||||
['Import Data',2,'Import Data','','Import data from CSV files'],
|
||||
['Manage Users',2,'My Company','','Add / remove users and manage their roles'],
|
||||
['Web Forms',2,'Webforms','', 'Code to embed forms in yor website'],
|
||||
//['Web Forms',2,'Webforms','', 'Code to embed forms in yor website'],
|
||||
['Permissions Manager',2,'Permission Engine','', 'Manage all permissions from one tool'],
|
||||
//['Property Setter',1,'Property Setter','', 'Customize properties of a Form (DocType) or Field'],
|
||||
['Customize Form View',3,'DocLayer','', 'Customize properties of a Form (DocType) or Field'],
|
||||
@@ -235,8 +235,7 @@ SetupData = function(cnty){
|
||||
this.buying = {'Buying':[['Supplier Type',1,'Supplier Type','','Manage supplier classifications'],
|
||||
['Supplier',1,'Supplier','id'+NEWLINE+'supplier_type'+NEWLINE+'supplier_status'+NEWLINE+'company','Supplier master']]};
|
||||
|
||||
this.maintenance = {'Maintenance':[['Serial No',1,'Serial No','item_code'+NEWLINE+'status'+NEWLINE+'pr_no'+NEWLINE+'delivery_note_no'+NEWLINE+'customer_name','Manage unique serial numbers for items'],
|
||||
['Purpose of Service',1,'Purpose of Service','','Purpose of service master']]};
|
||||
this.maintenance = {'Maintenance':[['Serial No',1,'Serial No','item_code'+NEWLINE+'status'+NEWLINE+'pr_no'+NEWLINE+'delivery_note_no'+NEWLINE+'customer_name','Manage unique serial numbers for items']]};
|
||||
|
||||
this.production = {'Production':[['Bill of Materials',1,'Bill Of Materials','id'+NEWLINE+'item'+NEWLINE+'description'+NEWLINE+'operating_cost'+NEWLINE+'maintained_by','Muti-level bill of materials and operations'],
|
||||
['Workstation',1,'Workstation','id'+NEWLINE+'workstation_name'+NEWLINE+'warehouse'+NEWLINE+'description','Workstation master']]};
|
||||
|
||||
Reference in New Issue
Block a user