2
0
mirror of https://github.com/frappe/books.git synced 2025-01-03 15:17:30 +00:00

incr: add schemas

This commit is contained in:
18alantom 2022-03-23 13:01:15 +05:30
parent a546f144ca
commit 02cacd5697
34 changed files with 2525 additions and 0 deletions

88
schemas/app/Account.json Normal file
View File

@ -0,0 +1,88 @@
{
"name": "Account",
"label": "Account",
"doctype": "DocType",
"isSingle": false,
"isTree": true,
"keywordFields": [
"name",
"rootType",
"accountType"
],
"fields": [
{
"fieldname": "name",
"label": "Account Name",
"fieldtype": "Data",
"required": true
},
{
"fieldname": "rootType",
"label": "Root Type",
"fieldtype": "Select",
"placeholder": "Root Type",
"options": [
"Asset",
"Liability",
"Equity",
"Income",
"Expense"
],
"required": true
},
{
"fieldname": "parentAccount",
"label": "Parent Account",
"fieldtype": "Link",
"target": "Account"
},
{
"fieldname": "accountType",
"label": "Account Type",
"placeholder": "Account Type",
"fieldtype": "Select",
"options": [
"Accumulated Depreciation",
"Bank",
"Cash",
"Chargeable",
"Cost of Goods Sold",
"Depreciation",
"Equity",
"Expense Account",
"Expenses Included In Valuation",
"Fixed Asset",
"Income Account",
"Payable",
"Receivable",
"Round Off",
"Stock",
"Stock Adjustment",
"Stock Received But Not Billed",
"Tax",
"Temporary"
]
},
{
"fieldname": "balance",
"label": "Balance",
"fieldtype": "Currency",
"readOnly": true
},
{
"fieldname": "isGroup",
"label": "Is Group",
"fieldtype": "Check"
}
],
"quickEditFields": [
"name",
"rootType",
"parentAccount",
"accountType",
"isGroup"
],
"treeSettings": {
"parentField": "parentAccount"
}
}

View File

@ -0,0 +1,87 @@
{
"name": "AccountingLedgerEntry",
"label": "Ledger Entry",
"naming": "autoincrement",
"doctype": "DocType",
"isSingle": false,
"isChild": false,
"keywordFields": [
"account",
"party",
"referenceName"
],
"fields": [
{
"fieldname": "date",
"label": "Date",
"fieldtype": "Date"
},
{
"fieldname": "account",
"label": "Account",
"fieldtype": "Link",
"target": "Account",
"required": true
},
{
"fieldname": "description",
"label": "Description",
"fieldtype": "Text"
},
{
"fieldname": "party",
"label": "Party",
"fieldtype": "Link",
"target": "Party"
},
{
"fieldname": "debit",
"label": "Debit",
"fieldtype": "Currency"
},
{
"fieldname": "credit",
"label": "Credit",
"fieldtype": "Currency"
},
{
"fieldname": "againstAccount",
"label": "Against Account",
"fieldtype": "Text"
},
{
"fieldname": "referenceType",
"label": "Ref. Type",
"fieldtype": "Data"
},
{
"fieldname": "referenceName",
"label": "Ref. Name",
"fieldtype": "DynamicLink",
"references": "referenceType"
},
{
"fieldname": "balance",
"label": "Balance",
"fieldtype": "Currency"
},
{
"fieldname": "reverted",
"label": "Reverted",
"fieldtype": "Check",
"default": 0
}
],
"quickEditFields": [
"date",
"account",
"description",
"party",
"debit",
"credit",
"againstAccount",
"referenceType",
"referenceName",
"balance"
]
}

View File

@ -0,0 +1,102 @@
{
"name": "AccountingSettings",
"label": "Accounting Settings",
"naming": "name",
"isSingle": true,
"isChild": false,
"isSubmittable": false,
"settings": null,
"keywordFields": [],
"fields": [
{
"label": "Company Name",
"fieldname": "companyName",
"fieldtype": "Data",
"required": true
},
{
"label": "Write Off Account",
"fieldname": "writeOffAccount",
"fieldtype": "Link",
"target": "Account",
"default": "Write Off"
},
{
"label": "Round Off Account",
"fieldname": "roundOffAccount",
"fieldtype": "Link",
"target": "Account",
"default": "Rounded Off"
},
{
"fieldname": "country",
"label": "Country",
"fieldtype": "AutoComplete",
"placeholder": "Select Country",
"readOnly": true,
"required": true
},
{
"fieldname": "currency",
"label": "Currency",
"fieldtype": "Data",
"readOnly": true,
"required": false
},
{
"fieldname": "fullname",
"label": "Name",
"fieldtype": "Data",
"required": true
},
{
"fieldname": "email",
"label": "Email",
"fieldtype": "Data",
"required": true,
"validate": {
"type": "email"
}
},
{
"fieldname": "bankName",
"label": "Bank Name",
"fieldtype": "Data",
"required": true
},
{
"fieldname": "fiscalYearStart",
"label": "Fiscal Year Start Date",
"fieldtype": "Date",
"required": true
},
{
"fieldname": "fiscalYearEnd",
"label": "Fiscal Year End Date",
"fieldtype": "Date",
"required": true
},
{
"fieldname": "setupComplete",
"label": "Setup Complete",
"fieldtype": "Check",
"default": 0
},
{
"fieldname": "gstin",
"label": "GSTIN",
"fieldtype": "Data",
"placeholder": "27AAAAA0000A1Z5"
}
],
"quickEditFields": [
"fullname",
"email",
"companyName",
"country",
"currency",
"fiscalYearStart",
"fiscalYearEnd",
"gstin"
]
}

95
schemas/app/Address.json Normal file
View File

@ -0,0 +1,95 @@
{
"name": "Address",
"doctype": "DocType",
"regional": 1,
"isSingle": false,
"keywordFields": [
"addressLine1",
"addressLine2",
"city",
"state",
"country",
"postalCode"
],
"fields": [
{
"fieldname": "addressLine1",
"label": "Address Line 1",
"placeholder": "Address Line 1",
"fieldtype": "Data",
"required": true
},
{
"fieldname": "addressLine2",
"label": "Address Line 2",
"placeholder": "Address Line 2",
"fieldtype": "Data"
},
{
"fieldname": "city",
"label": "City / Town",
"placeholder": "City / Town",
"fieldtype": "Data",
"required": true
},
{
"fieldname": "state",
"label": "State",
"placeholder": "State",
"fieldtype": "AutoComplete"
},
{
"fieldname": "country",
"label": "Country",
"placeholder": "Country",
"fieldtype": "AutoComplete",
"required": true
},
{
"fieldname": "postalCode",
"label": "Postal Code",
"placeholder": "Postal Code",
"fieldtype": "Data"
},
{
"fieldname": "emailAddress",
"label": "Email Address",
"placeholder": "Email Address",
"fieldtype": "Data"
},
{
"fieldname": "phone",
"label": "Phone",
"placeholder": "Phone",
"fieldtype": "Data"
},
{
"fieldname": "fax",
"label": "Fax",
"fieldtype": "Data"
},
{
"fieldname": "addressDisplay",
"fieldtype": "Text",
"label": "Address Display",
"readOnly": true
},
{
"fieldname": "pos",
"label": "Place of Supply",
"fieldtype": "AutoComplete",
"placeholder": "Place of Supply"
}
],
"quickEditFields": [
"addressLine1",
"addressLine2",
"city",
"state",
"country",
"postalCode",
"pos"
],
"inlineEditDisplayField": "addressDisplay",
"augmented": 1
}

17
schemas/app/Color.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "Color",
"doctype": "DocType",
"fields": [
{
"fieldname": "name",
"fieldtype": "Data",
"label": "Color",
"required": true
},
{
"fieldname": "hexvalue",
"fieldtype": "Data",
"label": "Hex Value"
}
]
}

View File

@ -0,0 +1,27 @@
{
"name": "CompanySettings",
"label": "Company Settings",
"naming": "autoincrement",
"isSingle": true,
"isChild": false,
"keywordFields": [
"companyName"
],
"fields": [
{
"fieldname": "companyName",
"label": "Company Name",
"fieldtype": "Data",
"disabled": false,
"required": true
},
{
"fieldname": "companyAddress",
"label": "Company Address",
"fieldtype": "Link",
"disabled": false,
"required": true,
"target": "Address"
}
]
}

87
schemas/app/Contact.json Normal file
View File

@ -0,0 +1,87 @@
{
"name": "Contact",
"doctype": "DocType",
"isSingle": false,
"naming": "autoincrement",
"pageSettings": {
"hideTitle": true
},
"titleField": "fullName",
"keywordFields": [
"fullName"
],
"fields": [
{
"fieldname": "fullName",
"label": "Full Name",
"fieldtype": "Data",
"required": true
},
{
"fieldname": "emailAddress",
"label": "Email Address",
"fieldtype": "Data"
},
{
"fieldname": "userId",
"label": "User ID",
"fieldtype": "Link",
"target": "User",
"hidden": true
},
{
"fieldname": "status",
"label": "Status",
"fieldtype": "Select",
"options": [
"Passive",
"Open",
"Replied"
]
},
{
"fieldname": "gender",
"label": "Gender",
"fieldtype": "Select",
"options": [
"Male",
"Female",
"Gender"
]
},
{
"fieldname": "mobileNumber",
"label": "Mobile Number",
"fieldtype": "Data"
},
{
"fieldname": "phone",
"label": "Phone",
"fieldtype": "Data"
}
],
"events": {},
"listSettings": {},
"layout": [
{
"columns": [
{
"fields": [
"fullName",
"emailAddress",
"userId",
"status"
]
},
{
"fields": [
"postalCode",
"gender",
"phone",
"mobileNumber"
]
}
]
}
]
}

42
schemas/app/Currency.json Normal file
View File

@ -0,0 +1,42 @@
{
"name": "Currency",
"label": "Currency",
"doctype": "DocType",
"isSingle": false,
"keywordFields": [
"name",
"symbol"
],
"quickEditFields": [
"name",
"symbol"
],
"fields": [
{
"fieldname": "name",
"label": "Currency Name",
"fieldtype": "Data",
"required": true
},
{
"fieldname": "fraction",
"label": "Fraction",
"fieldtype": "Data"
},
{
"fieldname": "fractionUnits",
"label": "Fraction Units",
"fieldtype": "Int"
},
{
"label": "Smallest Currency Fraction Value",
"fieldname": "smallestValue",
"fieldtype": "Currency"
},
{
"label": "Symbol",
"fieldname": "symbol",
"fieldtype": "Data"
}
]
}

121
schemas/app/Customer.json Normal file
View File

@ -0,0 +1,121 @@
{
"name": "Customer",
"label": "Customer",
"basedOn": "Party",
"filters": {
"customer": 1
},
"actions": [
{
"label": "Create Invoice"
},
{
"label": "View Invoices"
}
],
"regional": 1,
"keywordFields": [
"name"
],
"fields": [
{
"fieldname": "name",
"label": "Name",
"fieldtype": "Data",
"required": true,
"placeholder": "Full Name"
},
{
"fieldname": "image",
"label": "Image",
"fieldtype": "AttachImage"
},
{
"fieldname": "customer",
"label": "Is Customer",
"fieldtype": "Check"
},
{
"fieldname": "gstin",
"label": "GSTIN No.",
"fieldtype": "Data"
},
{
"fieldname": "gstType",
"label": "GST Registration",
"placeholder": "GST Registration",
"fieldtype": "Select",
"default": "Unregistered",
"options": [
"Unregistered",
"Registered Regular",
"Consumer"
]
},
{
"fieldname": "supplier",
"label": "Is Supplier",
"fieldtype": "Check"
},
{
"fieldname": "defaultAccount",
"label": "Default Account",
"fieldtype": "Link",
"target": "Account"
},
{
"fieldname": "outstandingAmount",
"label": "Outstanding Amount",
"fieldtype": "Currency"
},
{
"fieldname": "currency",
"label": "Currency",
"fieldtype": "Link",
"target": "Currency",
"placeholder": "INR"
},
{
"fieldname": "email",
"label": "Email",
"fieldtype": "Data",
"placeholder": "john@doe.com",
"validate": {
"type": "email"
}
},
{
"fieldname": "phone",
"label": "Phone",
"fieldtype": "Data",
"placeholder": "Phone",
"validate": {
"type": "phone"
}
},
{
"fieldname": "address",
"label": "Address",
"fieldtype": "Link",
"target": "Address",
"placeholder": "Click to create",
"inline": true
},
{
"fieldname": "addressDisplay",
"label": "Address Display",
"fieldtype": "Text",
"readOnly": true
}
],
"quickEditFields": [
"email",
"phone",
"address",
"defaultAccount",
"currency",
"gstType",
"gstin"
],
"augmented": 1
}

View File

@ -0,0 +1,66 @@
{
"name": "GetStarted",
"isSingle": true,
"fields": [
{
"fieldname": "onboardingComplete",
"label": "Onboarding Complete",
"fieldtype": "Check"
},
{
"fieldname": "companySetup",
"label": "Company Setup",
"fieldtype": "Check"
},
{
"fieldname": "systemSetup",
"label": "System Setup",
"fieldtype": "Check"
},
{
"fieldname": "invoiceSetup",
"label": "Invoice Setup",
"fieldtype": "Check"
},
{
"fieldname": "itemCreated",
"label": "Item Created",
"fieldtype": "Check"
},
{
"fieldname": "customerCreated",
"label": "Customer Created",
"fieldtype": "Check"
},
{
"fieldname": "supplierCreated",
"label": "Supplier Created",
"fieldtype": "Check"
},
{
"fieldname": "invoiceCreated",
"label": "Invoice Created",
"fieldtype": "Check"
},
{
"fieldname": "billCreated",
"label": "Bill Created",
"fieldtype": "Check"
},
{
"fieldname": "chartOfAccountsReviewed",
"label": "Chart Of Accounts Reviewed",
"fieldtype": "Check"
},
{
"fieldname": "openingBalanceChecked",
"label": "Opening Balances",
"fieldtype": "Check"
},
{
"fieldname": "taxesAdded",
"label": "Add Taxes",
"fieldtype": "Check"
}
]
}

134
schemas/app/Item.json Normal file
View File

@ -0,0 +1,134 @@
{
"name": "Item",
"label": "Item",
"doctype": "DocType",
"isSingle": false,
"regional": 1,
"keywordFields": [
"name",
"description"
],
"fields": [
{
"fieldname": "name",
"label": "Item Name",
"fieldtype": "Data",
"placeholder": "Item Name",
"required": true
},
{
"fieldname": "hsnCode",
"label": "HSN/SAC",
"fieldtype": "Int",
"placeholder": "HSN/SAC Code"
},
{
"fieldname": "image",
"label": "Image",
"fieldtype": "AttachImage"
},
{
"fieldname": "description",
"label": "Description",
"placeholder": "Item Description",
"fieldtype": "Text"
},
{
"fieldname": "unit",
"label": "Unit Type",
"fieldtype": "Select",
"placeholder": "Unit Type",
"default": "Unit",
"options": [
"Unit",
"Kg",
"Gram",
"Hour",
"Day"
]
},
{
"fieldname": "itemType",
"label": "Type",
"placeholder": "Type",
"fieldtype": "Select",
"default": "Product",
"options": [
"Product",
"Service"
]
},
{
"fieldname": "for",
"label": "For",
"fieldtype": "Select",
"options": [
"purchases",
"sales",
"both"
],
"map": {
"purchases": "Purchases",
"sales": "Sales",
"both": "Both"
},
"default": "both"
},
{
"fieldname": "incomeAccount",
"label": "Income",
"fieldtype": "Link",
"target": "Account",
"placeholder": "Income",
"required": true,
"disableCreation": true,
"formulaDependsOn": [
"itemType"
]
},
{
"fieldname": "expenseAccount",
"label": "Expense",
"fieldtype": "Link",
"target": "Account",
"placeholder": "Expense",
"required": true,
"disableCreation": true,
"formulaDependsOn": [
"itemType"
]
},
{
"fieldname": "tax",
"label": "Tax",
"fieldtype": "Link",
"target": "Tax",
"placeholder": "Tax"
},
{
"fieldname": "rate",
"label": "Rate",
"fieldtype": "Currency"
}
],
"quickEditFields": [
"hsnCode",
"rate",
"unit",
"itemType",
"for",
"tax",
"description",
"incomeAccount",
"expenseAccount"
],
"actions": [
{
"label": "New Invoice"
},
{
"label": "New Bill"
}
],
"augmented": 1
}

View File

@ -0,0 +1,97 @@
{
"label": "Journal Entry",
"name": "JournalEntry",
"doctype": "DocType",
"isSubmittable": true,
"settings": "JournalEntrySettings",
"fields": [
{
"fieldname": "entryType",
"label": "Entry Type",
"fieldtype": "Select",
"placeholder": "Entry Type",
"options": [
"Journal Entry",
"Bank Entry",
"Cash Entry",
"Credit Card Entry",
"Debit Note",
"Credit Note",
"Contra Entry",
"Excise Entry",
"Write Off Entry",
"Opening Entry",
"Depreciation Entry"
],
"map": {
"Journal Entry": "Journal Entry",
"Bank Entry": "Bank Entry",
"Cash Entry": "Cash Entry",
"Credit Card Entry": "Credit Card Entry",
"Debit Note": "Debit Note",
"Credit Note": "Credit Note",
"Contra Entry": "Contra Entry",
"Excise Entry": "Excise Entry",
"Write Off Entry": "Write Off Entry",
"Opening Entry": "Opening Entry",
"Depreciation Entry": "Depreciation Entry"
},
"required": true
},
{
"label": "Entry No",
"fieldname": "name",
"fieldtype": "Data",
"required": true,
"readOnly": true
},
{
"fieldname": "date",
"label": "Date",
"fieldtype": "Date"
},
{
"fieldname": "accounts",
"label": "Account Entries",
"fieldtype": "Table",
"childtype": "JournalEntryAccount",
"required": true
},
{
"fieldname": "referenceNumber",
"label": "Reference Number",
"fieldtype": "Data"
},
{
"fieldname": "referenceDate",
"label": "Reference Date",
"fieldtype": "Date"
},
{
"fieldname": "userRemark",
"label": "User Remark",
"fieldtype": "Text",
"placeholder": "User Remark"
},
{
"fieldname": "cancelled",
"label": "Cancelled",
"fieldtype": "Check",
"default": 0,
"readOnly": true
},
{
"fieldname": "numberSeries",
"label": "Number Series",
"fieldtype": "Link",
"target": "NumberSeries",
"required": true,
"default": "JV-"
}
],
"actions": [
{
"label": "Ledger Entries"
}
]
}

View File

@ -0,0 +1,30 @@
{
"name": "JournalEntryAccount",
"isChild": true,
"fields": [
{
"fieldname": "account",
"label": "Account",
"placeholder": "Account",
"fieldtype": "Link",
"target": "Account",
"required": true,
"groupBy": "rootType"
},
{
"fieldname": "debit",
"label": "Debit",
"fieldtype": "Currency"
},
{
"fieldname": "credit",
"label": "Credit",
"fieldtype": "Currency"
}
],
"tableFields": [
"account",
"debit",
"credit"
]
}

View File

@ -0,0 +1,9 @@
{
"name": "JournalEntrySettings",
"label": "Journal Entry Setting",
"doctype": "DocType",
"isSingle": true,
"isChild": false,
"keywordFields": [],
"fields": []
}

109
schemas/app/Party.json Normal file
View File

@ -0,0 +1,109 @@
{
"name": "Party",
"label": "Party",
"regional": 1,
"keywordFields": [
"name"
],
"fields": [
{
"fieldname": "name",
"label": "Name",
"fieldtype": "Data",
"required": true,
"placeholder": "Full Name"
},
{
"fieldname": "image",
"label": "Image",
"fieldtype": "AttachImage"
},
{
"fieldname": "customer",
"label": "Is Customer",
"fieldtype": "Check"
},
{
"fieldname": "gstin",
"label": "GSTIN No.",
"fieldtype": "Data"
},
{
"fieldname": "gstType",
"label": "GST Registration",
"placeholder": "GST Registration",
"fieldtype": "Select",
"default": "Unregistered",
"options": [
"Unregistered",
"Registered Regular",
"Consumer"
]
},
{
"fieldname": "supplier",
"label": "Is Supplier",
"fieldtype": "Check"
},
{
"fieldname": "defaultAccount",
"label": "Default Account",
"fieldtype": "Link",
"target": "Account"
},
{
"fieldname": "outstandingAmount",
"label": "Outstanding Amount",
"fieldtype": "Currency"
},
{
"fieldname": "currency",
"label": "Currency",
"fieldtype": "Link",
"target": "Currency",
"placeholder": "INR"
},
{
"fieldname": "email",
"label": "Email",
"fieldtype": "Data",
"placeholder": "john@doe.com",
"validate": {
"type": "email"
}
},
{
"fieldname": "phone",
"label": "Phone",
"fieldtype": "Data",
"placeholder": "Phone",
"validate": {
"type": "phone"
}
},
{
"fieldname": "address",
"label": "Address",
"fieldtype": "Link",
"target": "Address",
"placeholder": "Click to create",
"inline": true
},
{
"fieldname": "addressDisplay",
"label": "Address Display",
"fieldtype": "Text",
"readOnly": true
}
],
"quickEditFields": [
"email",
"phone",
"address",
"defaultAccount",
"currency",
"gstType",
"gstin"
],
"augmented": 1
}

219
schemas/app/Payment.json Normal file
View File

@ -0,0 +1,219 @@
{
"name": "Payment",
"label": "Payment",
"isSingle": false,
"isChild": false,
"isSubmittable": true,
"keywordFields": [],
"settings": "PaymentSettings",
"fields": [
{
"label": "Payment No",
"fieldname": "name",
"fieldtype": "Data",
"required": true,
"readOnly": true
},
{
"fieldname": "party",
"label": "Party",
"fieldtype": "Link",
"target": "Party",
"required": true
},
{
"fieldname": "date",
"label": "Posting Date",
"fieldtype": "Date"
},
{
"fieldname": "account",
"label": "From Account",
"fieldtype": "Link",
"target": "Account",
"required": true
},
{
"fieldname": "paymentType",
"label": "Payment Type",
"fieldtype": "Select",
"placeholder": "Payment Type",
"options": [
"Receive",
"Pay"
],
"map": {
"Receive": "Receive",
"Pay": "Pay"
},
"required": true
},
{
"fieldname": "paymentAccount",
"label": "To Account",
"placeholder": "To Account",
"fieldtype": "Link",
"target": "Account",
"required": true
},
{
"fieldname": "numberSeries",
"label": "Number Series",
"fieldtype": "Link",
"target": "NumberSeries",
"required": true,
"default": "PAY-"
},
{
"fieldname": "paymentMethod",
"label": "Payment Method",
"placeholder": "Payment Method",
"fieldtype": "Select",
"options": [
"Cash",
"Cheque",
"Transfer"
],
"default": "Cash",
"required": true
},
{
"fieldname": "referenceId",
"label": "Ref. / Cheque No.",
"placeholder": "Ref. / Cheque No.",
"fieldtype": "Data"
},
{
"fieldname": "referenceDate",
"label": "Ref. Date",
"placeholder": "Ref. Date",
"fieldtype": "Date"
},
{
"fieldname": "clearanceDate",
"label": "Clearance Date",
"placeholder": "Clearance Date",
"fieldtype": "Date"
},
{
"fieldname": "amount",
"label": "Amount",
"fieldtype": "Currency",
"required": true
},
{
"fieldname": "writeoff",
"label": "Write Off / Refund",
"fieldtype": "Currency"
},
{
"fieldname": "for",
"label": "Payment Reference",
"fieldtype": "Table",
"childtype": "PaymentFor",
"required": false
},
{
"fieldname": "cancelled",
"label": "Cancelled",
"fieldtype": "Check",
"default": 0,
"readOnly": true
}
],
"quickEditFields": [
"numberSeries",
"party",
"date",
"paymentMethod",
"account",
"paymentType",
"paymentAccount",
"referenceId",
"referenceDate",
"clearanceDate",
"amount",
"writeoff",
"for"
],
"layout": [
{
"columns": [
{
"fields": [
"party",
"account"
]
},
{
"fields": [
"date",
"paymentAccount"
]
}
]
},
{
"columns": [
{
"fields": [
"paymentMethod"
]
},
{
"fields": [
"paymentType"
]
},
{
"fields": [
"referenceId"
]
}
]
},
{
"columns": [
{
"fields": [
"referenceDate"
]
},
{
"fields": [
"clearanceDate"
]
}
]
},
{
"columns": [
{
"fields": [
"for"
]
}
]
},
{
"columns": [
{
"fields": [
"amount",
"writeoff"
]
}
]
}
],
"actions": [
{
"label": "Ledger Entries"
}
],
"links": [
{
"label": "Ledger Entries"
}
]
}

View File

@ -0,0 +1,43 @@
{
"name": "PaymentFor",
"label": "Payment For",
"isSingle": false,
"isChild": true,
"keywordFields": [],
"tableFields": [
"referenceType",
"referenceName",
"amount"
],
"fields": [
{
"fieldname": "referenceType",
"label": "Reference Type",
"placeholder": "Type",
"fieldtype": "Select",
"options": [
"SalesInvoice",
"PurchaseInvoice"
],
"map": {
"SalesInvoice": "Invoice",
"PurchaseInvoice": "Bill"
},
"required": true
},
{
"fieldname": "referenceName",
"label": "Reference Name",
"fieldtype": "DynamicLink",
"references": "referenceType",
"placeholder": "Name",
"required": true
},
{
"fieldname": "amount",
"label": "Allocated Amount",
"fieldtype": "Currency",
"required": true
}
]
}

View File

@ -0,0 +1,8 @@
{
"name": "PaymentSettings",
"label": "Payment Settings",
"isSingle": true,
"isChild": false,
"keywordFields": [],
"fields": []
}

View File

@ -0,0 +1,131 @@
{
"name": "PrintSettings",
"label": "Print Settings",
"isSingle": true,
"fields": [
{
"fieldname": "logo",
"label": "Logo",
"fieldtype": "AttachImage"
},
{
"fieldname": "companyName",
"label": "Company Name",
"fieldtype": "Data"
},
{
"fieldname": "email",
"label": "Email",
"fieldtype": "Data",
"placeholder": "john@doe.com",
"validate": {
"type": "email"
}
},
{
"fieldname": "displayLogo",
"label": "Display Logo in Invoice",
"fieldtype": "Check"
},
{
"fieldname": "phone",
"label": "Phone",
"fieldtype": "Data",
"placeholder": "9888900000",
"validate": {
"type": "phone"
}
},
{
"fieldname": "address",
"label": "Address",
"fieldtype": "Link",
"target": "Address",
"placeholder": "Click to create",
"inline": true
},
{
"fieldname": "template",
"label": "Template",
"placeholder": "Template",
"fieldtype": "Select",
"options": [
"Basic",
"Minimal",
"Business"
],
"default": "Basic"
},
{
"fieldname": "color",
"label": "Color",
"placeholder": "Select Color",
"fieldtype": "Color",
"colors": [
{
"label": "Red",
"value": "#f56565"
},
{
"label": "Orange",
"value": "#ed8936"
},
{
"label": "Yellow",
"value": "#ecc94b"
},
{
"label": "Green",
"value": "#48bb78"
},
{
"label": "Teal",
"value": "#38b2ac"
},
{
"label": "Blue",
"value": "#33a1ff"
},
{
"label": "Indigo",
"value": "#667eea"
},
{
"label": "Purple",
"value": "#9f7aea"
},
{
"label": "Pink",
"value": "#ed64a6"
},
{
"label": "Black",
"value": "#112B42"
}
]
},
{
"fieldname": "font",
"label": "Font",
"placeholder": "Font",
"fieldtype": "Select",
"options": [
"Inter",
"Times New Roman",
"Arial",
"Courier"
],
"default": "Inter"
}
],
"quickEditFields": [
"logo",
"displayLogo",
"template",
"color",
"font",
"email",
"phone",
"address"
]
}

View File

@ -0,0 +1,142 @@
{
"name": "PurchaseInvoice",
"doctype": "DocType",
"label": "Bill",
"printTemplate": {
"name": "InvoiceTemplate",
"props": [
"doc",
"printSettings"
],
"computed": {},
"__file": "models/doctype/SalesInvoice/InvoiceTemplate.vue",
"__hmrId": "3d0cd49d"
},
"isSingle": false,
"isChild": false,
"isSubmittable": true,
"keywordFields": [
"name",
"supplier"
],
"settings": "PurchaseInvoiceSettings",
"showTitle": true,
"fields": [
{
"label": "Bill No",
"fieldname": "name",
"fieldtype": "Data",
"required": true,
"readOnly": true
},
{
"fieldname": "date",
"label": "Date",
"fieldtype": "Date"
},
{
"fieldname": "supplier",
"label": "Supplier",
"fieldtype": "Link",
"target": "Supplier",
"required": true
},
{
"fieldname": "account",
"label": "Account",
"fieldtype": "Link",
"target": "Account"
},
{
"fieldname": "currency",
"label": "Supplier Currency",
"fieldtype": "Link",
"target": "Currency",
"hidden": true,
"formulaDependsOn": [
"supplier"
]
},
{
"fieldname": "exchangeRate",
"label": "Exchange Rate",
"fieldtype": "Float",
"default": 1
},
{
"fieldname": "items",
"label": "Items",
"fieldtype": "Table",
"childtype": "PurchaseInvoiceItem",
"required": true
},
{
"fieldname": "netTotal",
"label": "Net Total",
"fieldtype": "Currency",
"readOnly": true
},
{
"fieldname": "baseNetTotal",
"label": "Net Total (Company Currency)",
"fieldtype": "Currency",
"readOnly": true
},
{
"fieldname": "taxes",
"label": "Taxes",
"fieldtype": "Table",
"childtype": "TaxSummary",
"readOnly": true
},
{
"fieldname": "grandTotal",
"label": "Grand Total",
"fieldtype": "Currency",
"readOnly": true
},
{
"fieldname": "baseGrandTotal",
"label": "Grand Total (Company Currency)",
"fieldtype": "Currency",
"readOnly": true
},
{
"fieldname": "outstandingAmount",
"label": "Outstanding Amount",
"fieldtype": "Currency",
"readOnly": true
},
{
"fieldname": "terms",
"label": "Terms",
"fieldtype": "Text"
},
{
"fieldname": "cancelled",
"label": "Cancelled",
"fieldtype": "Check",
"default": 0,
"readOnly": true
},
{
"fieldname": "numberSeries",
"label": "Number Series",
"fieldtype": "Link",
"target": "NumberSeries",
"required": true,
"default": "PINV-"
}
],
"actions": [
{
"label": "Make Payment"
},
{
"label": "Print"
},
{
"label": "Ledger Entries"
}
]
}

View File

@ -0,0 +1,73 @@
{
"name": "PurchaseInvoiceItem",
"doctype": "DocType",
"isChild": true,
"keywordFields": [],
"tableFields": [
"item",
"tax",
"quantity",
"rate",
"amount"
],
"fields": [
{
"fieldname": "item",
"label": "Item",
"fieldtype": "Link",
"target": "Item",
"required": true
},
{
"fieldname": "description",
"label": "Description",
"fieldtype": "Text",
"hidden": true
},
{
"fieldname": "quantity",
"label": "Quantity",
"fieldtype": "Float",
"required": true,
"default": 1
},
{
"fieldname": "rate",
"label": "Rate",
"fieldtype": "Currency",
"required": true
},
{
"fieldname": "baseRate",
"label": "Rate (Company Currency)",
"fieldtype": "Currency",
"readOnly": true
},
{
"fieldname": "account",
"label": "Account",
"fieldtype": "Link",
"target": "Account",
"required": true,
"readOnly": true
},
{
"fieldname": "tax",
"label": "Tax",
"fieldtype": "Link",
"target": "Tax"
},
{
"fieldname": "amount",
"label": "Amount",
"fieldtype": "Currency",
"readOnly": true
},
{
"fieldname": "baseAmount",
"label": "Amount (Company Currency)",
"fieldtype": "Currency",
"readOnly": true
}
]
}

View File

@ -0,0 +1,9 @@
{
"name": "PurchaseInvoiceSettings",
"label": "Bills Settings",
"doctype": "DocType",
"isSingle": true,
"isChild": false,
"keywordFields": [],
"fields": []
}

View File

@ -0,0 +1,142 @@
{
"name": "SalesInvoice",
"label": "Invoice",
"doctype": "DocType",
"printTemplate": {
"name": "InvoiceTemplate",
"props": [
"doc",
"printSettings"
],
"computed": {},
"__file": "models/doctype/SalesInvoice/InvoiceTemplate.vue",
"__hmrId": "3d0cd49d"
},
"isSingle": false,
"isChild": false,
"isSubmittable": true,
"keywordFields": [
"name",
"customer"
],
"settings": "SalesInvoiceSettings",
"fields": [
{
"label": "Invoice No",
"fieldname": "name",
"fieldtype": "Data",
"required": true,
"readOnly": true
},
{
"fieldname": "date",
"label": "Date",
"fieldtype": "Date"
},
{
"fieldname": "customer",
"label": "Customer",
"fieldtype": "Link",
"target": "Customer",
"required": true
},
{
"fieldname": "account",
"label": "Account",
"fieldtype": "Link",
"target": "Account",
"disableCreation": true
},
{
"fieldname": "currency",
"label": "Customer Currency",
"fieldtype": "Link",
"target": "Currency",
"formulaDependsOn": [
"customer"
]
},
{
"fieldname": "exchangeRate",
"label": "Exchange Rate",
"fieldtype": "Float",
"default": 1,
"readOnly": true
},
{
"fieldname": "items",
"label": "Items",
"fieldtype": "Table",
"childtype": "SalesInvoiceItem",
"required": true
},
{
"fieldname": "netTotal",
"label": "Net Total",
"fieldtype": "Currency",
"readOnly": true
},
{
"fieldname": "baseNetTotal",
"label": "Net Total (Company Currency)",
"fieldtype": "Currency",
"readOnly": true
},
{
"fieldname": "taxes",
"label": "Taxes",
"fieldtype": "Table",
"childtype": "TaxSummary",
"readOnly": true
},
{
"fieldname": "grandTotal",
"label": "Grand Total",
"fieldtype": "Currency",
"readOnly": true
},
{
"fieldname": "baseGrandTotal",
"label": "Grand Total (Company Currency)",
"fieldtype": "Currency",
"readOnly": true
},
{
"fieldname": "outstandingAmount",
"label": "Outstanding Amount",
"fieldtype": "Currency",
"readOnly": true
},
{
"fieldname": "terms",
"label": "Notes",
"fieldtype": "Text"
},
{
"fieldname": "cancelled",
"label": "Cancelled",
"fieldtype": "Check",
"default": 0,
"readOnly": true
},
{
"fieldname": "numberSeries",
"label": "Number Series",
"fieldtype": "Link",
"target": "NumberSeries",
"required": true,
"default": "SINV-"
}
],
"actions": [
{
"label": "Make Payment"
},
{
"label": "Print"
},
{
"label": "Ledger Entries"
}
]
}

View File

@ -0,0 +1,93 @@
{
"name": "SalesInvoiceItem",
"doctype": "DocType",
"isChild": true,
"regional": 1,
"keywordFields": [],
"tableFields": [
"item",
"tax",
"quantity",
"rate",
"amount"
],
"fields": [
{
"fieldname": "item",
"label": "Item",
"fieldtype": "Link",
"target": "Item",
"required": true
},
{
"fieldname": "description",
"label": "Description",
"fieldtype": "Text",
"hidden": true,
"formulaDependsOn": [
"item"
]
},
{
"fieldname": "quantity",
"label": "Quantity",
"fieldtype": "Float",
"required": true,
"default": 1
},
{
"fieldname": "rate",
"label": "Rate",
"fieldtype": "Currency",
"required": true,
"formulaDependsOn": [
"item"
]
},
{
"fieldname": "baseRate",
"label": "Rate (Company Currency)",
"fieldtype": "Currency",
"readOnly": true
},
{
"fieldname": "account",
"label": "Account",
"hidden": true,
"fieldtype": "Link",
"target": "Account",
"required": true,
"readOnly": true
},
{
"fieldname": "tax",
"label": "Tax",
"fieldtype": "Link",
"target": "Tax",
"formulaDependsOn": [
"item"
]
},
{
"fieldname": "amount",
"label": "Amount",
"fieldtype": "Currency",
"readOnly": true
},
{
"fieldname": "baseAmount",
"label": "Amount (Company Currency)",
"fieldtype": "Currency",
"readOnly": true
},
{
"fieldname": "hsnCode",
"label": "HSN/SAC",
"fieldtype": "Int",
"formulaDependsOn": [
"item"
]
}
],
"augmented": 1
}

View File

@ -0,0 +1,45 @@
{
"name": "SalesInvoiceSettings",
"label": "SalesInvoice Settings",
"doctype": "DocType",
"isSingle": true,
"isChild": false,
"keywordFields": [],
"fields": [
{
"fieldname": "template",
"label": "Template",
"placeholder": "Template",
"fieldtype": "Select",
"options": [
"Basic I",
"Basic II",
"Modern"
],
"required": true,
"default": "Basic I"
},
{
"fieldname": "font",
"label": "Font",
"placeholder": "Font",
"fieldtype": "Select",
"options": [
"Montserrat",
"Open Sans",
"Oxygen",
"Merriweather"
],
"required": true,
"default": "Montserrat"
},
{
"fieldname": "themeColor",
"label": "Theme Color",
"fieldtype": "Data",
"required": true,
"default": "#000000",
"hidden": true
}
]
}

View File

@ -0,0 +1,101 @@
{
"name": "SetupWizard",
"label": "Setup Wizard",
"naming": "name",
"isSingle": true,
"isChild": false,
"isSubmittable": false,
"settings": null,
"keywordFields": [],
"fields": [
{
"fieldname": "companyLogo",
"label": "Company Logo",
"fieldtype": "AttachImage"
},
{
"fieldname": "country",
"label": "Country",
"fieldtype": "AutoComplete",
"placeholder": "Select Country",
"required": true
},
{
"fieldname": "fullname",
"label": "Your Name",
"fieldtype": "Data",
"placeholder": "John Doe",
"required": true
},
{
"fieldname": "email",
"label": "Email",
"fieldtype": "Data",
"placeholder": "john@doe.com",
"required": true,
"validate": {
"type": "email"
}
},
{
"fieldname": "companyName",
"label": "Company Name",
"placeholder": "Company Name",
"fieldtype": "Data",
"required": true
},
{
"fieldname": "bankName",
"label": "Bank Name",
"fieldtype": "Data",
"placeholder": "Prime Bank",
"required": true
},
{
"fieldname": "fiscalYearStart",
"label": "Fiscal Year Start Date",
"placeholder": "Fiscal Year Start Date",
"fieldtype": "Date",
"formulaDependsOn": ["country"],
"required": true
},
{
"fieldname": "fiscalYearEnd",
"label": "Fiscal Year End Date",
"placeholder": "Fiscal Year End Date",
"fieldtype": "Date",
"formulaDependsOn": ["country"],
"required": true
},
{
"fieldname": "currency",
"label": "Currency",
"fieldtype": "Data",
"placeholder": "Currency",
"formulaDependsOn": ["country"],
"required": true
},
{
"fieldname": "completed",
"label": "Completed",
"fieldtype": "Check",
"readOnly": true
},
{
"fieldname": "chartOfAccounts",
"label": "Chart of Accounts",
"fieldtype": "AutoComplete",
"placeholder": "Select CoA",
"formulaDependsOn": ["country"]
}
],
"quickEditFields": [
"fullname",
"bankName",
"country",
"currency",
"chartOfAccounts",
"fiscalYearStart",
"fiscalYearEnd"
]
}

121
schemas/app/Supplier.json Normal file
View File

@ -0,0 +1,121 @@
{
"name": "Supplier",
"label": "Supplier",
"basedOn": "Party",
"filters": {
"supplier": 1
},
"actions": [
{
"label": "Create Bill"
},
{
"label": "View Bills"
}
],
"regional": 1,
"keywordFields": [
"name"
],
"fields": [
{
"fieldname": "name",
"label": "Name",
"fieldtype": "Data",
"required": true,
"placeholder": "Full Name"
},
{
"fieldname": "image",
"label": "Image",
"fieldtype": "AttachImage"
},
{
"fieldname": "customer",
"label": "Is Customer",
"fieldtype": "Check"
},
{
"fieldname": "gstin",
"label": "GSTIN No.",
"fieldtype": "Data"
},
{
"fieldname": "gstType",
"label": "GST Registration",
"placeholder": "GST Registration",
"fieldtype": "Select",
"default": "Unregistered",
"options": [
"Unregistered",
"Registered Regular",
"Consumer"
]
},
{
"fieldname": "supplier",
"label": "Is Supplier",
"fieldtype": "Check"
},
{
"fieldname": "defaultAccount",
"label": "Default Account",
"fieldtype": "Link",
"target": "Account"
},
{
"fieldname": "outstandingAmount",
"label": "Outstanding Amount",
"fieldtype": "Currency"
},
{
"fieldname": "currency",
"label": "Currency",
"fieldtype": "Link",
"target": "Currency",
"placeholder": "INR"
},
{
"fieldname": "email",
"label": "Email",
"fieldtype": "Data",
"placeholder": "john@doe.com",
"validate": {
"type": "email"
}
},
{
"fieldname": "phone",
"label": "Phone",
"fieldtype": "Data",
"placeholder": "Phone",
"validate": {
"type": "phone"
}
},
{
"fieldname": "address",
"label": "Address",
"fieldtype": "Link",
"target": "Address",
"placeholder": "Click to create",
"inline": true
},
{
"fieldname": "addressDisplay",
"label": "Address Display",
"fieldtype": "Text",
"readOnly": true
}
],
"quickEditFields": [
"email",
"phone",
"address",
"defaultAccount",
"currency",
"gstType",
"gstin"
],
"augmented": 1
}

28
schemas/app/Tax.json Normal file
View File

@ -0,0 +1,28 @@
{
"name": "Tax",
"label": "Tax",
"doctype": "DocType",
"isSingle": false,
"isChild": false,
"keywordFields": [
"name"
],
"fields": [
{
"fieldname": "name",
"label": "Name",
"fieldtype": "Data",
"required": true
},
{
"fieldname": "details",
"label": "Details",
"fieldtype": "Table",
"childtype": "TaxDetail",
"required": true
}
],
"quickEditFields": [
"details"
]
}

View File

@ -0,0 +1,28 @@
{
"name": "TaxDetail",
"label": "Tax Detail",
"doctype": "DocType",
"isSingle": false,
"isChild": true,
"keywordFields": [],
"fields": [
{
"fieldname": "account",
"label": "Tax Account",
"fieldtype": "Link",
"target": "Account",
"required": true
},
{
"fieldname": "rate",
"label": "Rate",
"fieldtype": "Float",
"required": true,
"placeholder": "0%"
}
],
"tableFields": [
"account",
"rate"
]
}

View File

@ -0,0 +1,32 @@
{
"name": "TaxSummary",
"doctype": "DocType",
"isChild": true,
"fields": [
{
"fieldname": "account",
"label": "Tax Account",
"fieldtype": "Link",
"target": "Account",
"required": true
},
{
"fieldname": "rate",
"label": "Rate",
"fieldtype": "Float",
"required": true
},
{
"fieldname": "amount",
"label": "Amount",
"fieldtype": "Currency",
"required": true
},
{
"fieldname": "baseAmount",
"label": "Amount (Company Currency)",
"fieldtype": "Currency",
"readOnly": true
}
]
}

View File

@ -0,0 +1,75 @@
{
"name": "NumberSeries",
"label": "Number Series",
"doctype": "DocType",
"isSingle": false,
"isChild": false,
"keywordFields": [],
"fields": [
{
"fieldname": "name",
"label": "Prefix",
"fieldtype": "Data",
"required": true
},
{
"fieldname": "start",
"label": "Start",
"fieldtype": "Int",
"default": 1001,
"required": true,
"minvalue": 0
},
{
"fieldname": "padZeros",
"label": "Pad Zeros",
"fieldtype": "Int",
"default": 4,
"required": true
},
{
"fieldname": "referenceType",
"label": "Reference Type",
"fieldtype": "Select",
"options": [
"SalesInvoice",
"PurchaseInvoice",
"Payment",
"JournalEntry",
"Quotation",
"SalesOrder",
"Fulfillment",
"PurchaseOrder",
"PurchaseReceipt",
"-"
],
"map": {
"SalesInvoice": "Invoice",
"PurchaseInvoice": "Bill",
"Payment": "Payment",
"JournalEntry": "Journal Entry",
"Quotation": "Quotation",
"SalesOrder": "SalesOrder",
"Fulfillment": "Fulfillment",
"PurchaseOrder": "PurchaseOrder",
"PurchaseReceipt": "PurchaseReceipt",
"-": "None"
},
"default": "-",
"required": true,
"readOnly": true
},
{
"fieldname": "current",
"label": "Current",
"fieldtype": "Int",
"required": true,
"readOnly": true
}
],
"quickEditFields": [
"start",
"padZeros",
"referenceType"
]
}

View File

@ -0,0 +1,11 @@
{
"name": "PatchRun",
"fields": [
{
"fieldname": "name",
"fieldtype": "Data",
"label": "Name",
"required": true
}
]
}

View File

@ -0,0 +1,27 @@
{
"name": "SingleValue",
"doctype": "DocType",
"isSingle": false,
"isChild": false,
"keywordFields": [],
"fields": [
{
"fieldname": "parent",
"label": "Parent",
"fieldtype": "Data",
"required": true
},
{
"fieldname": "fieldname",
"label": "Fieldname",
"fieldtype": "Data",
"required": true
},
{
"fieldname": "value",
"label": "Value",
"fieldtype": "Data",
"required": true
}
]
}

View File

@ -0,0 +1,86 @@
{
"name": "SystemSettings",
"label": "System Settings",
"doctype": "DocType",
"isSingle": true,
"isChild": false,
"keywordFields": [],
"fields": [
{
"fieldname": "dateFormat",
"label": "Date Format",
"fieldtype": "Select",
"options": [
{
"label": "23/03/2022",
"value": "dd/MM/yyyy"
},
{
"label": "03/23/2022",
"value": "MM/dd/yyyy"
},
{
"label": "23-03-2022",
"value": "dd-MM-yyyy"
},
{
"label": "03-23-2022",
"value": "MM-dd-yyyy"
},
{
"label": "2022-03-23",
"value": "yyyy-MM-dd"
},
{
"label": "23 Mar, 2022",
"value": "d MMM, y"
},
{
"label": "Mar 23, 2022",
"value": "MMM d, y"
}
],
"default": "MMM d, y",
"required": true,
"description": "Sets the app-wide date display format."
},
{
"fieldname": "locale",
"label": "Locale",
"fieldtype": "Data",
"default": "en-IN",
"description": "Set the local code. This is used for number formatting."
},
{
"fieldname": "displayPrecision",
"label": "Display Precision",
"fieldtype": "Int",
"default": 2,
"required": true,
"minValue": 0,
"maxValue": 9,
"description": "Sets how many digits are shown after the decimal point."
},
{
"fieldname": "internalPrecision",
"label": "Internal Precision",
"fieldtype": "Int",
"minValue": 0,
"default": 11,
"description": "Sets the internal precision used for monetary calculations. Above 6 should be sufficient for most currencies."
},
{
"fieldname": "hideGetStarted",
"label": "Hide Get Started",
"fieldtype": "Check",
"default": 0,
"description": "Hides the Get Started section from the sidebar. Change will be visible on restart or refreshing the app."
}
],
"quickEditFields": [
"locale",
"dateFormat",
"displayPrecision",
"hideGetStarted"
]
}