2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 19:09:01 +00:00

AccountingSettings

This commit is contained in:
Faris Ansari 2018-03-30 22:32:44 +05:30
parent 5c6ed0cbb1
commit 25095bd064
3 changed files with 2762 additions and 4 deletions

2710
fixtures/countryInfo.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,5 @@
const countryList = Object.keys(require('../../../fixtures/countryInfo.json')).sort();
module.exports = {
name: "AccountingSettings",
label: "AccountingSettings",
@ -9,15 +11,60 @@ module.exports = {
keywordFields: [],
fields: [
{
fieldname: "Company Name",
label: "companyName",
label: "Company Name",
fieldname: "companyName",
fieldtype: "Data",
required: 1
},
{
fieldname: "Writeoff Account",
label: "writeOffAccount",
label: "Writeoff Account",
fieldname: "writeOffAccount",
fieldtype: "Account"
},
{
"fieldname": "file",
"label": "File",
"fieldtype": "Data",
"required": 1,
"directory": 1
},
{
"fieldname": "country",
"label": "Country",
"fieldtype": "Autocomplete",
"required": 1,
getList: () => countryList
},
{
"fieldname": "fullname",
"label": "Name",
"fieldtype": "Data",
"required": 1
},
{
"fieldname": "email",
"label": "Email",
"fieldtype": "Data",
"required": 1
},
{
"fieldname": "abbreviation",
"label": "Abbreviation",
"fieldtype": "Data",
"required": 1
},
{
"fieldname": "bankName",
"label": "Bank Name",
"fieldtype": "Data",
"required": 1
}
]

View File

@ -1,6 +1,7 @@
module.exports = {
models: {
Account: require('./doctype/Account/Account.js'),
AccountingSettings: require('./doctype/AccountingSettings/AccountingSettings'),
AccountingLedgerEntry: require('./doctype/AccountingLedgerEntry/AccountingLedgerEntry.js'),
Party: require('./doctype/Party/Party.js'),