From fd84f5ce903ae272fce84d8fc10459539fe7dcb1 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 14 Jul 2011 12:42:27 +0530 Subject: [PATCH] added loan, loan_installment txts --- accounts/doctype/loan/loan.txt | 144 ++++++++++++++++++ .../loan_installment/loan_installment.txt | 94 ++++++++++++ 2 files changed, 238 insertions(+) create mode 100644 accounts/doctype/loan/loan.txt create mode 100644 accounts/doctype/loan_installment/loan_installment.txt diff --git a/accounts/doctype/loan/loan.txt b/accounts/doctype/loan/loan.txt new file mode 100644 index 0000000000..90c0db2077 --- /dev/null +++ b/accounts/doctype/loan/loan.txt @@ -0,0 +1,144 @@ +# DocType, Loan +[ + + # These values are common in all dictionaries + { + 'creation': '2011-07-12 10:50:19', + 'docstatus': 0, + 'modified': '2011-07-14 11:22:32', + 'modified_by': 'Administrator', + 'owner': 'Administrator' + }, + + # These values are common for all DocType + { + '_last_update': '1310622631', + 'colour': 'White:FFF', + 'doctype': 'DocType', + 'module': 'Accounts', + 'name': '__common__', + 'section_style': 'Simple', + 'show_in_menu': 0, + 'version': 11 + }, + + # These values are common for all DocField + { + 'doctype': 'DocField', + 'name': '__common__', + 'parent': 'Loan', + 'parentfield': 'fields', + 'parenttype': 'DocType', + 'permlevel': 0 + }, + + # These values are common for all DocPerm + { + 'cancel': 1, + 'create': 1, + 'doctype': 'DocPerm', + 'idx': 1, + 'name': '__common__', + 'parent': 'Loan', + 'parentfield': 'permissions', + 'parenttype': 'DocType', + 'permlevel': 0, + 'read': 1, + 'role': 'Accounts User', + 'submit': 1, + 'write': 1 + }, + + # DocType, Loan + { + 'doctype': 'DocType', + 'name': 'Loan' + }, + + # DocPerm + { + 'doctype': 'DocPerm' + }, + + # DocField + { + 'doctype': 'DocField', + 'fieldname': 'naming_series', + 'fieldtype': 'Select', + 'idx': 1, + 'label': 'Naming Series', + 'options': '\nLOAN', + 'reqd': 1 + }, + + # DocField + { + 'doctype': 'DocField', + 'fieldname': 'account', + 'fieldtype': 'Link', + 'idx': 2, + 'label': 'Account', + 'options': 'Account', + 'reqd': 1 + }, + + # DocField + { + 'doctype': 'DocField', + 'fieldname': 'loan_amount', + 'fieldtype': 'Currency', + 'idx': 3, + 'label': 'Loan Amount', + 'reqd': 1 + }, + + # DocField + { + 'doctype': 'DocField', + 'fieldname': 'start_date', + 'fieldtype': 'Date', + 'idx': 4, + 'label': 'Start Date', + 'reqd': 1 + }, + + # DocField + { + 'doctype': 'DocField', + 'fieldname': 'no_of_installments', + 'fieldtype': 'Int', + 'idx': 5, + 'label': 'No of Installments', + 'reqd': 1 + }, + + # DocField + { + 'colour': 'White:FFF', + 'doctype': 'DocField', + 'fieldtype': 'Button', + 'idx': 6, + 'label': 'Generate', + 'trigger': 'Client' + }, + + # DocField + { + 'doctype': 'DocField', + 'fieldname': 'installments', + 'fieldtype': 'Table', + 'idx': 7, + 'label': 'Installments', + 'options': 'Loan Installment' + }, + + # DocField + { + 'allow_on_submit': 1, + 'colour': 'White:FFF', + 'doctype': 'DocField', + 'fieldtype': 'Button', + 'idx': 8, + 'label': 'Installment Reciept' + } +] \ No newline at end of file diff --git a/accounts/doctype/loan_installment/loan_installment.txt b/accounts/doctype/loan_installment/loan_installment.txt new file mode 100644 index 0000000000..dd65939869 --- /dev/null +++ b/accounts/doctype/loan_installment/loan_installment.txt @@ -0,0 +1,94 @@ +# DocType, Loan Installment +[ + + # These values are common in all dictionaries + { + 'creation': '2011-07-12 10:53:58', + 'docstatus': 0, + 'modified': '2011-07-12 10:53:58', + 'modified_by': 'Administrator', + 'owner': 'Administrator' + }, + + # These values are common for all DocType + { + 'colour': 'White:FFF', + 'doctype': 'DocType', + 'istable': 1, + 'module': 'Accounts', + 'name': '__common__', + 'section_style': 'Simple', + 'show_in_menu': 0, + 'version': 1 + }, + + # These values are common for all DocField + { + 'doctype': 'DocField', + 'name': '__common__', + 'parent': 'Loan Installment', + 'parentfield': 'fields', + 'parenttype': 'DocType', + 'permlevel': 0 + }, + + # DocType, Loan Installment + { + 'doctype': 'DocType', + 'name': 'Loan Installment' + }, + + # DocField + { + 'doctype': 'DocField', + 'fieldname': 'amount', + 'fieldtype': 'Currency', + 'idx': 1, + 'label': 'Amount' + }, + + # DocField + { + 'doctype': 'DocField', + 'fieldname': 'due_date', + 'fieldtype': 'Date', + 'idx': 2, + 'label': 'Due Date' + }, + + # DocField + { + 'doctype': 'DocField', + 'fieldname': 'check_number', + 'fieldtype': 'Int', + 'idx': 3, + 'label': 'Check Number' + }, + + # DocField + { + 'doctype': 'DocField', + 'fieldname': 'check_date', + 'fieldtype': 'Date', + 'idx': 4, + 'label': 'Check Date' + }, + + # DocField + { + 'doctype': 'DocField', + 'fieldname': 'deposit_date', + 'fieldtype': 'Date', + 'idx': 5, + 'label': 'Deposit Date' + }, + + # DocField + { + 'doctype': 'DocField', + 'fieldname': 'realized_date', + 'fieldtype': 'Date', + 'idx': 6, + 'label': 'Realized Date' + } +] \ No newline at end of file