Sourced wnframework-modules from Google Code as erpnext

This commit is contained in:
Pratik Vyas
2011-06-08 14:37:15 +05:30
commit c1e6e4c752
1680 changed files with 162635 additions and 0 deletions

View File

View File

@@ -0,0 +1,17 @@
cur_frm.cscript.refresh = function(doc, cdt, cdn) {
if(doc.abbr && !doc.__islocal) set_field_permlevel('abbr',1);
}
cur_frm.fields_dict.default_bank_account.get_query = function(doc) {
return 'SELECT `tabAccount`.name, `tabAccount`.debit_or_credit, `tabAccount`.group_or_ledger FROM `tabAccount` WHERE `tabAccount`.company = "'+doc.name+'" AND `tabAccount`.group_or_ledger = "Ledger" AND `tabAccount`.docstatus != 2 AND `tabAccount`.account_type = "Bank or Cash" AND `tabAccount`.%(key)s LIKE "%s" ORDER BY `tabAccount`.name LIMIT 50';
}
cur_frm.fields_dict.receivables_group.get_query = function(doc) {
return 'SELECT `tabAccount`.name FROM `tabAccount` WHERE `tabAccount`.company = "'+doc.name+'" AND `tabAccount`.group_or_ledger = "Group" AND `tabAccount`.docstatus != 2 AND `tabAccount`.%(key)s LIKE "%s" ORDER BY `tabAccount`.name LIMIT 50';
}
cur_frm.fields_dict.payables_group.get_query = function(doc) {
return 'SELECT `tabAccount`.name FROM `tabAccount` WHERE `tabAccount`.company = "'+doc.name+'" AND `tabAccount`.group_or_ledger = "Group" AND `tabAccount`.docstatus != 2 AND `tabAccount`.%(key)s LIKE "%s" ORDER BY `tabAccount`.name LIMIT 50';
}

View File

@@ -0,0 +1,228 @@
# Please edit this list and import only required elements
import webnotes
from webnotes.utils import add_days, add_months, add_years, cint, cstr, date_diff, default_fields, flt, fmt_money, formatdate, generate_hash, getTraceback, get_defaults, get_first_day, get_last_day, getdate, has_common, month_name, now, nowdate, replace_newlines, sendmail, set_default, str_esc_quote, user_format, validate_email_add
from webnotes.model import db_exists
from webnotes.model.doc import Document, addchild, removechild, getchildren, make_autoname, SuperDocType
from webnotes.model.doclist import getlist, copy_doclist
from webnotes.model.code import get_obj, get_server_obj, run_server_obj, updatedb, check_syntax
from webnotes import session, form, is_testing, msgprint, errprint
set = webnotes.conn.set
sql = webnotes.conn.sql
get_value = webnotes.conn.get_value
in_transaction = webnotes.conn.in_transaction
convert_to_lists = webnotes.conn.convert_to_lists
# -----------------------------------------------------------------------------------------
class DocType:
def __init__(self,d,dl):
self.doc, self.doclist = d,dl
# Create default accounts
# ---------------------------------------------------
def create_default_accounts(self):
self.fld_dict = {'account_name':0,'parent_account':1,'group_or_ledger':2,'is_pl_account':3,'account_type':4,'debit_or_credit':5,'company':6,'tax_rate':7}
acc_list_common = [['Application of Funds (Assets)','','Group','No','','Debit',self.doc.name,''],
['Current Assets','Application of Funds (Assets)','Group','No','','Debit',self.doc.name,''],
['Accounts Receivable','Current Assets','Group','No','','Debit',self.doc.name,''],
['Bank Accounts','Current Assets','Group','No','Bank or Cash','Debit',self.doc.name,''],
['Cash In Hand','Current Assets','Group','No','Bank or Cash','Debit',self.doc.name,''],
['Cash','Cash In Hand','Ledger','No','Bank or Cash','Debit',self.doc.name,''],
['Loans and Advances (Assets)','Current Assets','Group','No','','Debit',self.doc.name,''],
['Securities and Deposits','Current Assets','Group','No','','Debit',self.doc.name,''],
['Earnest Money','Securities and Deposits','Ledger','No','','Debit',self.doc.name,''],
['Stock In Hand','Current Assets','Group','No','','Debit',self.doc.name,''],
['Stock','Stock In Hand','Ledger','No','','Debit',self.doc.name,''],
['Tax Assets','Current Assets','Group','No','','Debit',self.doc.name,''],
['Fixed Assets','Application of Funds (Assets)','Group','No','','Debit',self.doc.name,''],
['Capital Equipments','Fixed Assets','Ledger','No','Fixed Asset Account','Debit',self.doc.name,''],
['Computers','Fixed Assets','Ledger','No','Fixed Asset Account','Debit',self.doc.name,''],
['Furniture and Fixture','Fixed Assets','Ledger','No','Fixed Asset Account','Debit',self.doc.name,''],
['Office Equipments','Fixed Assets','Ledger','No','Fixed Asset Account','Debit',self.doc.name,''],
['Plant and Machinery','Fixed Assets','Ledger','No','Fixed Asset Account','Debit',self.doc.name,''],
['Investments','Application of Funds (Assets)','Group','No','','Debit',self.doc.name,''],
['Temporary Accounts (Assets)','Application of Funds (Assets)','Group','No','','Debit',self.doc.name,''],
['Temporary Account (Assets)','Temporary Accounts (Assets)','Ledger','No','','Debit',self.doc.name,''],
['Source of Funds (Liabilities)','','Group','No','','Credit',self.doc.name,''],
['Capital Account','Source of Funds (Liabilities)','Group','No','','Credit',self.doc.name,''],
['Reserves and Surplus','Capital Account','Group','No','','Credit',self.doc.name,''],
['Shareholders Funds','Capital Account','Group','No','','Credit',self.doc.name,''],
['Current Liabilities','Source of Funds (Liabilities)','Group','No','','Credit',self.doc.name,''],
['Accounts Payable','Current Liabilities','Group','No','','Credit',self.doc.name,''],
['Duties and Taxes','Current Liabilities','Group','No','','Credit',self.doc.name,''],
['Loans (Liabilities)','Current Liabilities','Group','No','','Credit',self.doc.name,''],
['Secured Loans','Loans (Liabilities)','Group','No','','Credit',self.doc.name,''],
['Unsecured Loans','Loans (Liabilities)','Group','No','','Credit',self.doc.name,''],
['Bank Overdraft Account','Loans (Liabilities)','Group','No','','Credit',self.doc.name,''],
['Temporary Accounts (Liabilities)','Source of Funds (Liabilities)','Group','No','','Credit',self.doc.name,''],
['Temporary Account (Liabilities)','Temporary Accounts (Liabilities)','Ledger','No','','Credit',self.doc.name,''],
['Income','','Group','Yes','','Credit',self.doc.name,''],
['Direct Income','Income','Group','Yes','Income Account','Credit',self.doc.name,''],
['Sales','Direct Income','Ledger','Yes','Income Account','Credit',self.doc.name,''],
['Service','Direct Income','Ledger','Yes','Income Account','Credit',self.doc.name,''],
['Indirect Income','Income','Group','Yes','Income Account','Credit',self.doc.name,''],
['Expenses','','Group','Yes','Expense Account','Debit',self.doc.name,''],
['Direct Expenses','Expenses','Group','Yes','Expense Account','Debit',self.doc.name,''],
['Cost of Goods Sold','Direct Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Indirect Expenses','Expenses','Group','Yes','Expense Account','Debit',self.doc.name,''],
['Advertising and Publicity','Indirect Expenses','Ledger','Yes','Chargeable','Debit',self.doc.name,''],
['Bad Debts Written Off','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Bank Charges','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Books and Periodicals','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Charity and Donations','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Commission on Sales','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Conveyance Expenses','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Customer Entertainment Expenses','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Depreciation Account','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Freight and Forwarding Charges','Indirect Expenses','Ledger','Yes','Chargeable','Debit',self.doc.name,''],
['Legal Expenses','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Miscellaneous Expenses','Indirect Expenses','Ledger','Yes','Chargeable','Debit',self.doc.name,''],
['Office Maintenance Expenses','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Office Rent','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Postal Expenses','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Print and Stationary','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Rounded Off','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Salary','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Sales Promotion Expenses','Indirect Expenses','Ledger','Yes','Chargeable','Debit',self.doc.name,''],
['Service Charges Paid','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Staff Welfare Expenses','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Telephone Expenses','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Travelling Expenses','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,''],
['Water and Electricity Expenses','Indirect Expenses','Ledger','Yes','Expense Account','Debit',self.doc.name,'']
]
acc_list_india = [
['CENVAT Capital Goods','Tax Assets','Ledger','No','','Debit',self.doc.name,''],
['CENVAT','Tax Assets','Ledger','No','Chargeable','Debit',self.doc.name,''],
['CENVAT Service Tax','Tax Assets','Ledger','No','','Debit',self.doc.name,''],
['CENVAT Service Tax Cess 1','Tax Assets','Ledger','No','','Debit',self.doc.name,''],
['CENVAT Service Tax Cess 2','Tax Assets','Ledger','No','','Debit',self.doc.name,''],
['CENVAT Edu Cess','Tax Assets','Ledger','No','Chargeable','Debit',self.doc.name,''],
['CENVAT SHE Cess','Tax Assets','Ledger','No','Chargeable','Debit',self.doc.name,''],
['Excise Duty 4','Tax Assets','Ledger','No','Tax','Debit',self.doc.name,'4.00'],
['Excise Duty 8','Tax Assets','Ledger','No','Tax','Debit',self.doc.name,'8.00'],
['Excise Duty 10','Tax Assets','Ledger','No','Tax','Debit',self.doc.name,'10.00'],
['Excise Duty 14','Tax Assets','Ledger','No','Tax','Debit',self.doc.name,'14.00'],
['Excise Duty Edu Cess 2','Tax Assets','Ledger','No','Tax','Debit',self.doc.name,'2.00'],
['Excise Duty SHE Cess 1','Tax Assets','Ledger','No','Tax','Debit',self.doc.name,'1.00'],
['P L A','Tax Assets','Ledger','No','','Debit',self.doc.name,''],
['P L A - Cess Portion','Tax Assets','Ledger','No','','Debit',self.doc.name,''],
['Edu. Cess on Excise','Duties and Taxes','Ledger','No','Tax','Credit',self.doc.name,'2.00'],
['Edu. Cess on Service Tax','Duties and Taxes','Ledger','No','Tax','Credit',self.doc.name,'2.00'],
['Edu. Cess on TDS','Duties and Taxes','Ledger','No','Tax','Credit',self.doc.name,'2.00'],
['Excise Duty @ 4','Duties and Taxes','Ledger','No','Tax','Credit',self.doc.name,'4.00'],
['Excise Duty @ 8','Duties and Taxes','Ledger','No','Tax','Credit',self.doc.name,'8.00'],
['Excise Duty @ 10','Duties and Taxes','Ledger','No','Tax','Credit',self.doc.name,'10.00'],
['Excise Duty @ 14','Duties and Taxes','Ledger','No','Tax','Credit',self.doc.name,'14.00'],
['Service Tax','Duties and Taxes','Ledger','No','Tax','Credit',self.doc.name,'10.3'],
['SHE Cess on Excise','Duties and Taxes','Ledger','No','Tax','Credit',self.doc.name,'1.00'],
['SHE Cess on Service Tax','Duties and Taxes','Ledger','No','Tax','Credit',self.doc.name,'1.00'],
['SHE Cess on TDS','Duties and Taxes','Ledger','No','Tax','Credit',self.doc.name,'1.00'],
['Professional Tax','Duties and Taxes','Ledger','No','','Credit',self.doc.name,''],
['VAT','Duties and Taxes','Ledger','No','','Credit',self.doc.name,''],
['TDS (Advertisement)','Duties and Taxes','Ledger','No','','Credit',self.doc.name,''],
['TDS (Commission)','Duties and Taxes','Ledger','No','','Credit',self.doc.name,''],
['TDS (Contractor)','Duties and Taxes','Ledger','No','','Credit',self.doc.name,''],
['TDS (Interest)','Duties and Taxes','Ledger','No','','Credit',self.doc.name,''],
['TDS (Rent)','Duties and Taxes','Ledger','No','','Credit',self.doc.name,''],
['TDS (Salary)','Duties and Taxes','Ledger','No','','Credit',self.doc.name,'']
]
# load common account heads
for d in acc_list_common:
self.add_acc(d)
country = sql("select value from tabSingles where field = 'country' and doctype = 'Control Panel'")
country = country and cstr(country[0][0]) or ''
# load taxes (only for India)
if country == 'India':
for d in acc_list_india:
self.add_acc(d)
# Create account
# ---------------------------------------------------
def add_acc(self,lst):
ac = Document('Account')
for d in self.fld_dict.keys():
ac.fields[d] = (d == 'parent_account' and lst[self.fld_dict[d]]) and lst[self.fld_dict[d]] +' - '+ self.doc.abbr or lst[self.fld_dict[d]]
ac.old_parent = ''
ac_obj = get_obj(doc=ac)
ac_obj.validate()
ac_obj.doc.save(1)
ac_obj.on_update()
sql("commit")
sql("start transaction")
# Set letter head
# ---------------------------------------------------
def set_letter_head(self):
if not self.doc.letter_head:
if self.doc.address:
header = """
<div><h3> %(comp)s </h3> %(add)s </div>
""" % {'comp':self.doc.name,
'add':self.doc.address.replace("\n",'<br>')}
self.doc.letter_head = header
# Set default AR and AP group
# ---------------------------------------------------
def set_default_groups(self):
if not self.doc.receivables_group:
set(self.doc, 'receivables_group', 'Accounts Receivable - '+self.doc.abbr)
if not self.doc.payables_group:
set(self.doc, 'payables_group', 'Accounts Payable - '+self.doc.abbr)
# Create default cost center
# ---------------------------------------------------
def create_default_cost_center(self):
glc = get_obj('GL Control')
cc_list = [{'cost_center_name':'Root','company_name':self.doc.name,'company_abbr':self.doc.abbr,'group_or_ledger':'Group','parent_cost_center':'','old_parent':''}, {'cost_center_name':'Default CC Ledger','company_name':self.doc.name,'company_abbr':self.doc.abbr,'group_or_ledger':'Ledger','parent_cost_center':'Root - ' + self.doc.abbr,'old_parent':''}]
for c in cc_list:
glc.add_cc(str(c))
# On update
# ---------------------------------------------------
def on_update(self):
self.set_letter_head()
ac = sql("select name from tabAccount where account_name='Income' and company=%s", self.doc.name)
if not ac:
self.create_default_accounts()
self.set_default_groups()
cc = sql("select name from `tabCost Center` where cost_center_name = 'Root' and company_name = '%s'"%(self.doc.name))
if not cc:
self.create_default_cost_center()
# Trash accounts and cost centers for this company
# ---------------------------------------------------
def on_trash(self):
acc = sql("select name from tabAccount where company = '%s' and docstatus = 1" % self.doc.name)
for each in acc:
get_obj('Account', each[0]).on_trash()
cc = sql("select name from `tabCost Center` where company_name = '%s' and docstatus = 1" % self.doc.name)
for each in cc:
get_obj('Cost Center', each[0]).on_trash()
msgprint("Company trashed. All the accounts and cost centers related to this company also trashed. You can restore it anytime from Setup -> Manage Trash")
# Restore accounts and cost centers for this company
# ---------------------------------------------------
def on_restore(self):
acc = sql("select name from tabAccount where company = '%s' and docstatus = 2" % self.doc.name)
for each in acc:
get_obj('Account', each[0]).on_restore()
cc = sql("select name from `tabCost Center` where company_name = '%s' and docstatus = 2" % self.doc.name)
for each in cc:
get_obj('Cost Center', each[0]).on_restore()
msgprint("Company restored. All the accounts and cost centers related to this company also restored.")

View File

@@ -0,0 +1,930 @@
[
{
'_last_update': '1303215455',
'allow_attach': None,
'allow_copy': None,
'allow_email': None,
'allow_print': None,
'allow_rename': None,
'allow_trash': 1,
'autoname': 'field:company_name',
'change_log': None,
'client_script': None,
'client_script_core': None,
'client_string': None,
'colour': 'White:FFF',
'creation': '2010-08-08 17:08:55',
'description': None,
'docstatus': 0,
'doctype': 'DocType',
'document_type': 'Master',
'dt_template': None,
'hide_heading': None,
'hide_toolbar': None,
'idx': None,
'in_create': None,
'in_dialog': None,
'is_transaction_doc': None,
'issingle': None,
'istable': None,
'max_attachments': None,
'menu_index': None,
'modified': '2011-04-20 12:17:16',
'modified_by': 'Administrator',
'module': 'Setup',
'name': 'Company',
'name_case': None,
'owner': 'Administrator',
'parent': None,
'parent_node': None,
'parentfield': None,
'parenttype': None,
'print_outline': None,
'read_only': None,
'read_only_onload': None,
'search_fields': None,
'section_style': 'Tabbed',
'server_code': None,
'server_code_compiled': None,
'server_code_core': None,
'server_code_error': ' ',
'show_in_menu': 0,
'smallicon': None,
'use_template': None,
'version': 86
},
{
'amend': 0,
'cancel': 0,
'create': 1,
'creation': '2010-08-08 17:08:55',
'docstatus': 0,
'doctype': 'DocPerm',
'execute': None,
'idx': 1,
'match': '',
'modified': '2010-08-08 17:08:55',
'modified_by': 'Administrator',
'name': 'PERM00119',
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'read': 1,
'role': 'System Manager',
'submit': 0,
'write': 1
},
{
'amend': 0,
'cancel': 0,
'create': 1,
'creation': '2010-08-08 17:08:55',
'docstatus': 0,
'doctype': 'DocPerm',
'execute': None,
'idx': 2,
'match': '',
'modified': '2010-08-08 17:08:55',
'modified_by': 'Administrator',
'name': 'PERM00120',
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'read': 1,
'role': 'Administrator',
'submit': 0,
'write': 1
},
{
'amend': None,
'cancel': 0,
'create': None,
'creation': '2010-08-08 17:08:55',
'docstatus': 0,
'doctype': 'DocPerm',
'execute': None,
'idx': 3,
'match': None,
'modified': '2010-08-08 17:08:55',
'modified_by': 'Administrator',
'name': 'PERM00121',
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 1,
'read': 1,
'role': 'All',
'submit': None,
'write': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2011-05-09 11:04:28',
'default': None,
'depends_on': None,
'description': 'Please Enter Company Name and Abbr and save the document. Once saved Accounting Settings will be populated automatically',
'docstatus': 0,
'doctype': 'DocField',
'fieldname': None,
'fieldtype': 'Section Break',
'hidden': None,
'icon': None,
'idx': 1,
'in_filter': None,
'label': 'Details',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': '000000437',
'no_copy': None,
'oldfieldname': None,
'oldfieldtype': 'Section Break',
'options': None,
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:55',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'company_name',
'fieldtype': 'Data',
'hidden': None,
'icon': None,
'idx': 2,
'in_filter': None,
'label': 'Company',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL00695',
'no_copy': 1,
'oldfieldname': 'company_name',
'oldfieldtype': 'Data',
'options': None,
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': 1,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': 'White:FFF',
'creation': '2010-08-08 17:08:55',
'default': None,
'depends_on': None,
'description': 'Please Enter Abbreviation or Short Name properly as it will be added as Suffix to all Account Heads.',
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'abbr',
'fieldtype': 'Data',
'hidden': None,
'icon': None,
'idx': 3,
'in_filter': None,
'label': 'Abbr',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL00696',
'no_copy': 1,
'oldfieldname': 'abbr',
'oldfieldtype': 'Data',
'options': None,
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': 1,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:55',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'address',
'fieldtype': 'Small Text',
'hidden': None,
'icon': None,
'idx': 4,
'in_filter': None,
'label': 'Address',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL00697',
'no_copy': None,
'oldfieldname': 'address',
'oldfieldtype': 'Small Text',
'options': None,
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2011-05-09 11:04:28',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'default_currency',
'fieldtype': 'Select',
'hidden': None,
'icon': None,
'idx': 5,
'in_filter': None,
'label': 'Default Currency',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': '000000434',
'no_copy': None,
'oldfieldname': None,
'oldfieldtype': None,
'options': 'link:Currency',
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': 1,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2011-05-09 11:04:28',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': None,
'fieldtype': 'Column Break',
'hidden': None,
'icon': None,
'idx': 6,
'in_filter': None,
'label': None,
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': '000000438',
'no_copy': None,
'oldfieldname': None,
'oldfieldtype': 'Column Break',
'options': None,
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': '50%'
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:55',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'phone_no',
'fieldtype': 'Data',
'hidden': None,
'icon': None,
'idx': 7,
'in_filter': None,
'label': 'Phone No',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL00699',
'no_copy': None,
'oldfieldname': 'phone_no',
'oldfieldtype': 'Data',
'options': 'Phone',
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:55',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'email',
'fieldtype': 'Data',
'hidden': None,
'icon': None,
'idx': 8,
'in_filter': None,
'label': 'Email',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL00700',
'no_copy': None,
'oldfieldname': 'email',
'oldfieldtype': 'Data',
'options': 'Email',
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:55',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'fax',
'fieldtype': 'Data',
'hidden': None,
'icon': None,
'idx': 9,
'in_filter': None,
'label': 'Fax',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL00701',
'no_copy': None,
'oldfieldname': 'fax',
'oldfieldtype': 'Data',
'options': 'Phone',
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': 'White:FFF',
'creation': '2010-12-14 10:32:55',
'default': None,
'depends_on': 'eval:!doc.__islocal',
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': None,
'fieldtype': 'Button',
'hidden': None,
'icon': None,
'idx': 10,
'in_filter': None,
'label': 'Trash Company',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL04130',
'no_copy': None,
'oldfieldname': None,
'oldfieldtype': 'Button',
'options': None,
'owner': 'nabin@webnotestech.com',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': 'Client',
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:55',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'website',
'fieldtype': 'Data',
'hidden': None,
'icon': None,
'idx': 11,
'in_filter': None,
'label': 'Website',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL00702',
'no_copy': None,
'oldfieldname': 'website',
'oldfieldtype': 'Data',
'options': None,
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': 'White:FFF',
'creation': '2011-05-09 11:04:28',
'default': None,
'depends_on': None,
'description': 'Company registration numbers for your reference. Example: VAT Registration Numbers etc.',
'docstatus': 0,
'doctype': 'DocField',
'fieldname': None,
'fieldtype': 'Section Break',
'hidden': None,
'icon': None,
'idx': 12,
'in_filter': None,
'label': 'Registration Info',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': '000000439',
'no_copy': None,
'oldfieldname': None,
'oldfieldtype': 'Section Break',
'options': None,
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': '50%'
},
{
'allow_on_submit': None,
'colour': 'White:FFF',
'creation': '2010-08-08 17:08:55',
'default': None,
'depends_on': None,
'description': 'Company registration numbers for your reference. Tax numbers etc.',
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'registration_details',
'fieldtype': 'Code',
'hidden': None,
'icon': None,
'idx': 13,
'in_filter': None,
'label': 'Registration Details',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL00704',
'no_copy': None,
'oldfieldname': 'registration_details',
'oldfieldtype': 'Code',
'options': None,
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2011-05-09 11:04:28',
'default': None,
'depends_on': 'eval:!doc.__islocal',
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': None,
'fieldtype': 'Section Break',
'hidden': None,
'icon': None,
'idx': 14,
'in_filter': None,
'label': 'Accounting Settings',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': '000000440',
'no_copy': None,
'oldfieldname': None,
'oldfieldtype': 'Section Break',
'options': None,
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:55',
'default': None,
'depends_on': 'eval:!doc.__islocal',
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'default_bank_account',
'fieldtype': 'Link',
'hidden': None,
'icon': None,
'idx': 15,
'in_filter': None,
'label': 'Default Bank Account',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL00706',
'no_copy': 1,
'oldfieldname': 'default_bank_account',
'oldfieldtype': 'Link',
'options': 'Account',
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': 'Client',
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:55',
'default': None,
'depends_on': 'eval:!doc.__islocal',
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'receivables_group',
'fieldtype': 'Link',
'hidden': None,
'icon': None,
'idx': 16,
'in_filter': None,
'label': 'Receivables Group',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL00707',
'no_copy': 1,
'oldfieldname': 'receivables_group',
'oldfieldtype': 'Link',
'options': 'Account',
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': 'Client',
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:55',
'default': None,
'depends_on': 'eval:!doc.__islocal',
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'payables_group',
'fieldtype': 'Link',
'hidden': None,
'icon': None,
'idx': 17,
'in_filter': None,
'label': 'Payables Group',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL00708',
'no_copy': 1,
'oldfieldname': 'payables_group',
'oldfieldtype': 'Link',
'options': 'Account',
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': 'Client',
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2011-05-09 11:04:28',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': None,
'fieldtype': 'Column Break',
'hidden': None,
'icon': None,
'idx': 18,
'in_filter': None,
'label': None,
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': '000000441',
'no_copy': None,
'oldfieldname': None,
'oldfieldtype': 'Column Break',
'options': None,
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': '50%'
},
{
'allow_on_submit': None,
'colour': 'White:FFF',
'creation': '2010-08-08 17:08:55',
'default': None,
'depends_on': 'eval:!doc.__islocal',
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'yearly_bgt_flag',
'fieldtype': 'Select',
'hidden': None,
'icon': None,
'idx': 19,
'in_filter': None,
'label': 'If Yearly Budget Exceeded',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL00710',
'no_copy': None,
'oldfieldname': 'yearly_bgt_flag',
'oldfieldtype': 'Select',
'options': '\nWarn\nIgnore\nStop',
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:55',
'default': None,
'depends_on': 'eval:!doc.__islocal',
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'monthly_bgt_flag',
'fieldtype': 'Select',
'hidden': None,
'icon': None,
'idx': 20,
'in_filter': None,
'label': 'If Monthly Budget Exceeded',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL00711',
'no_copy': None,
'oldfieldname': 'monthly_bgt_flag',
'oldfieldtype': 'Select',
'options': '\nWarn\nIgnore\nStop',
'owner': 'jai@webnotestech.com',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:55',
'default': None,
'depends_on': 'eval:!doc.__islocal',
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'credit_days',
'fieldtype': 'Int',
'hidden': None,
'icon': None,
'idx': 21,
'in_filter': None,
'label': 'Credit Days',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL00712',
'no_copy': None,
'oldfieldname': 'credit_days',
'oldfieldtype': 'Int',
'options': None,
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:55',
'default': None,
'depends_on': 'eval:!doc.__islocal',
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'credit_limit',
'fieldtype': 'Currency',
'hidden': None,
'icon': None,
'idx': 22,
'in_filter': None,
'label': 'Credit Limit',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL00713',
'no_copy': None,
'oldfieldname': 'credit_limit',
'oldfieldtype': 'Currency',
'options': None,
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:55',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'trash_reason',
'fieldtype': 'Small Text',
'hidden': None,
'icon': None,
'idx': 23,
'in_filter': None,
'label': 'Trash Reason',
'modified': '2011-05-09 11:04:28',
'modified_by': 'Administrator',
'name': 'FL00716',
'no_copy': 1,
'oldfieldname': 'trash_reason',
'oldfieldtype': 'Small Text',
'options': None,
'owner': 'Administrator',
'parent': 'Company',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 1,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
}
]