|
|
@ -6,11 +6,12 @@ import frappe |
|
|
|
def get_data(): |
|
|
|
config = [ |
|
|
|
{ |
|
|
|
"label": _("Masters and Accounts"), |
|
|
|
"label": _("Accounts Receivable"), |
|
|
|
"items": [ |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Item", |
|
|
|
"name": "Sales Invoice", |
|
|
|
"description": _("Bills raised to Customers."), |
|
|
|
"onboard": 1, |
|
|
|
}, |
|
|
|
{ |
|
|
@ -21,36 +22,55 @@ def get_data(): |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Supplier", |
|
|
|
"description": _("Supplier database."), |
|
|
|
"onboard": 1, |
|
|
|
"name": "Payment Entry", |
|
|
|
"description": _("Bank/Cash transactions against party or for internal transfer") |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Company", |
|
|
|
"description": _("Company (not Customer or Supplier) master."), |
|
|
|
"onboard": 1, |
|
|
|
"name": "Payment Request", |
|
|
|
"description": _("Payment Request"), |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Account", |
|
|
|
"icon": "fa fa-sitemap", |
|
|
|
"label": _("Chart of Accounts"), |
|
|
|
"route": "#Tree/Account", |
|
|
|
"description": _("Tree of financial accounts."), |
|
|
|
"onboard": 1, |
|
|
|
"type": "report", |
|
|
|
"name": "Accounts Receivable", |
|
|
|
"doctype": "Sales Invoice", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Accounts Receivable Summary", |
|
|
|
"doctype": "Sales Invoice", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Sales Register", |
|
|
|
"doctype": "Sales Invoice", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Item-wise Sales Register", |
|
|
|
"is_query_report": True, |
|
|
|
"doctype": "Sales Invoice" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Ordered Items To Be Billed", |
|
|
|
"is_query_report": True, |
|
|
|
"doctype": "Sales Invoice" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Delivered Items To Be Billed", |
|
|
|
"is_query_report": True, |
|
|
|
"doctype": "Sales Invoice" |
|
|
|
}, |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
"label": _("Billing"), |
|
|
|
"label": _("Accounts Payable"), |
|
|
|
"items": [ |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Sales Invoice", |
|
|
|
"description": _("Bills raised to Customers."), |
|
|
|
"onboard": 1, |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Purchase Invoice", |
|
|
@ -59,51 +79,74 @@ def get_data(): |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Payment Request", |
|
|
|
"description": _("Payment Request"), |
|
|
|
"name": "Supplier", |
|
|
|
"description": _("Supplier database."), |
|
|
|
"onboard": 1, |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Payment Term", |
|
|
|
"description": _("Payment Terms based on conditions") |
|
|
|
"name": "Payment Entry", |
|
|
|
"description": _("Bank/Cash transactions against party or for internal transfer") |
|
|
|
}, |
|
|
|
|
|
|
|
# Reports |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Ordered Items To Be Billed", |
|
|
|
"is_query_report": True, |
|
|
|
"reference_doctype": "Sales Invoice" |
|
|
|
"name": "Accounts Payable", |
|
|
|
"doctype": "Purchase Invoice", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Delivered Items To Be Billed", |
|
|
|
"name": "Accounts Payable Summary", |
|
|
|
"doctype": "Purchase Invoice", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Purchase Register", |
|
|
|
"doctype": "Purchase Invoice", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Item-wise Purchase Register", |
|
|
|
"is_query_report": True, |
|
|
|
"reference_doctype": "Sales Invoice" |
|
|
|
"doctype": "Purchase Invoice" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Purchase Order Items To Be Billed", |
|
|
|
"is_query_report": True, |
|
|
|
"reference_doctype": "Purchase Invoice" |
|
|
|
"doctype": "Purchase Invoice" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Received Items To Be Billed", |
|
|
|
"is_query_report": True, |
|
|
|
"reference_doctype": "Purchase Invoice" |
|
|
|
"doctype": "Purchase Invoice" |
|
|
|
}, |
|
|
|
] |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
"label": _("Settings"), |
|
|
|
"icon": "fa fa-cog", |
|
|
|
"label": _("Accounting Masters"), |
|
|
|
"items": [ |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Company", |
|
|
|
"description": _("Company (not Customer or Supplier) master."), |
|
|
|
"onboard": 1, |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Account", |
|
|
|
"icon": "fa fa-sitemap", |
|
|
|
"label": _("Chart of Accounts"), |
|
|
|
"route": "#Tree/Account", |
|
|
|
"description": _("Tree of financial accounts."), |
|
|
|
"onboard": 1, |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Accounts Settings", |
|
|
|
"description": _("Default settings for accounting transactions.") |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
@ -112,82 +155,74 @@ def get_data(): |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Currency", |
|
|
|
"description": _("Enable / disable currencies.") |
|
|
|
"name": "Accounting Dimension", |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Currency Exchange", |
|
|
|
"description": _("Currency exchange rate master.") |
|
|
|
"name": "Finance Book", |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Exchange Rate Revaluation", |
|
|
|
"description": _("Exchange Rate Revaluation master.") |
|
|
|
"name": "Accounting Period", |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Payment Gateway Account", |
|
|
|
"description": _("Setup Gateway accounts.") |
|
|
|
"name": "Payment Term", |
|
|
|
"description": _("Payment Terms based on conditions") |
|
|
|
}, |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
"label": _("Banking and Payments"), |
|
|
|
"items": [ |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Terms and Conditions", |
|
|
|
"label": _("Terms and Conditions Template"), |
|
|
|
"description": _("Template of terms or contract.") |
|
|
|
"label": _("Match Payments with Invoices"), |
|
|
|
"name": "Payment Reconciliation", |
|
|
|
"description": _("Match non-linked Invoices and Payments.") |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Mode of Payment", |
|
|
|
"description": _("e.g. Bank, Cash, Credit Card") |
|
|
|
"label": _("Update Bank Transaction Dates"), |
|
|
|
"name": "Bank Reconciliation", |
|
|
|
"description": _("Update bank payment dates with journals.") |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Auto Repeat", |
|
|
|
"label": _("Auto Repeat"), |
|
|
|
"description": _("To make recurring documents") |
|
|
|
"label": _("Invoice Discounting"), |
|
|
|
"name": "Invoice Discounting", |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "C-Form", |
|
|
|
"description": _("C-Form records"), |
|
|
|
"country": "India" |
|
|
|
"type": "report", |
|
|
|
"name": "Bank Reconciliation Statement", |
|
|
|
"is_query_report": True, |
|
|
|
"doctype": "Journal Entry" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Cheque Print Template", |
|
|
|
"description": _("Setup cheque dimensions for printing") |
|
|
|
"type": "report", |
|
|
|
"name": "Bank Clearance Summary", |
|
|
|
"is_query_report": True, |
|
|
|
"doctype": "Journal Entry" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Accounting Dimension", |
|
|
|
"description": _("Setup custom dimensions for accounting") |
|
|
|
"name": "Bank Guarantee" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Opening Invoice Creation Tool", |
|
|
|
"description": _("Create Opening Sales and Purchase Invoices") |
|
|
|
} |
|
|
|
"name": "Cheque Print Template", |
|
|
|
"description": _("Setup cheque dimensions for printing") |
|
|
|
}, |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
"label": _("Accounting Entries"), |
|
|
|
"label": _("General Ledger"), |
|
|
|
"items": [ |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Payment Entry", |
|
|
|
"description": _("Bank/Cash transactions against party or for internal transfer") |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Journal Entry", |
|
|
|
"description": _("Accounting journal entries.") |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
"label": _("Financial Statements"), |
|
|
|
"items": [ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "General Ledger", |
|
|
@ -196,118 +231,50 @@ def get_data(): |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Accounts Receivable", |
|
|
|
"name": "Customer Ledger Summary", |
|
|
|
"doctype": "Sales Invoice", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Accounts Payable", |
|
|
|
"doctype": "Purchase Invoice", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Trial Balance", |
|
|
|
"doctype": "GL Entry", |
|
|
|
"is_query_report": True, |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Balance Sheet", |
|
|
|
"doctype": "GL Entry", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Cash Flow", |
|
|
|
"doctype": "GL Entry", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Profit and Loss Statement", |
|
|
|
"doctype": "GL Entry", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Consolidated Financial Statement", |
|
|
|
"doctype": "GL Entry", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
"name": "Supplier Ledger Summary", |
|
|
|
"doctype": "Sales Invoice", |
|
|
|
"is_query_report": True, |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
"label": _("Banking and Payments"), |
|
|
|
"label": _("Taxes"), |
|
|
|
"items": [ |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"label": _("Bank"), |
|
|
|
"name": "Bank", |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "page", |
|
|
|
"label": _("Reconcile payments and bank transactions"), |
|
|
|
"name": "bank-reconciliation", |
|
|
|
"description": _("Link bank transactions with payments.") |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"label": _("Bank Account"), |
|
|
|
"name": "Bank Account", |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"label": _("Invoice Discounting"), |
|
|
|
"name": "Invoice Discounting", |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"label": _("Bank Statement Transaction Entry List"), |
|
|
|
"name": "Bank Statement Transaction Entry", |
|
|
|
"route": "#List/Bank Statement Transaction Entry", |
|
|
|
"name": "Sales Taxes and Charges Template", |
|
|
|
"description": _("Tax template for selling transactions.") |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"label": _("Bank Statement Transaction Entry Report"), |
|
|
|
"name": "Bank Statement Transaction Entry", |
|
|
|
"route": "#Report/Bank Statement Transaction Entry", |
|
|
|
"name": "Purchase Taxes and Charges Template", |
|
|
|
"description": _("Tax template for buying transactions.") |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"label": _("Bank Statement Settings"), |
|
|
|
"name": "Bank Statement Settings", |
|
|
|
"name": "Item Tax Template", |
|
|
|
"description": _("Tax template for item tax rates.") |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"label": _("Update Bank Transaction Dates"), |
|
|
|
"name": "Bank Reconciliation", |
|
|
|
"description": _("Update bank payment dates with journals.") |
|
|
|
"name": "Tax Category", |
|
|
|
"description": _("Tax Category for overriding tax rates.") |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"label": _("Match Payments with Invoices"), |
|
|
|
"name": "Payment Reconciliation", |
|
|
|
"description": _("Match non-linked Invoices and Payments.") |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Bank Reconciliation Statement", |
|
|
|
"is_query_report": True, |
|
|
|
"doctype": "Journal Entry" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Bank Clearance Summary", |
|
|
|
"is_query_report": True, |
|
|
|
"doctype": "Journal Entry" |
|
|
|
"name": "Tax Rule", |
|
|
|
"description": _("Tax Rule for transactions.") |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Bank Guarantee", |
|
|
|
"doctype": "Bank Guarantee" |
|
|
|
"name": "Tax Withholding Category", |
|
|
|
"description": _("Tax Withholding rates to be applied on transactions.") |
|
|
|
}, |
|
|
|
] |
|
|
|
}, |
|
|
@ -327,6 +294,10 @@ def get_data(): |
|
|
|
"name": "Budget", |
|
|
|
"description": _("Define budget for a financial year.") |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Accounting Dimension", |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Budget Variance Report", |
|
|
@ -338,51 +309,106 @@ def get_data(): |
|
|
|
"name": "Monthly Distribution", |
|
|
|
"description": _("Seasonality for setting budgets, targets etc.") |
|
|
|
}, |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
"label": _("Financial Statements"), |
|
|
|
"items": [ |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Trial Balance", |
|
|
|
"doctype": "GL Entry", |
|
|
|
"is_query_report": True, |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Profit and Loss Statement", |
|
|
|
"doctype": "GL Entry", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Balance Sheet", |
|
|
|
"doctype": "GL Entry", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Cash Flow", |
|
|
|
"doctype": "GL Entry", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Consolidated Financial Statement", |
|
|
|
"doctype": "GL Entry", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
"label": _("Opening and Closing"), |
|
|
|
"items": [ |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Opening Invoice Creation Tool", |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Chart of Accounts Importer", |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Period Closing Voucher", |
|
|
|
"description": _("Close Balance Sheet and book Profit or Loss.") |
|
|
|
}, |
|
|
|
] |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
"label": _("Taxes"), |
|
|
|
"label": _("Multi Currency"), |
|
|
|
"items": [ |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Tax Category", |
|
|
|
"description": _("Tax Category for overriding tax rates.") |
|
|
|
"name": "Currency", |
|
|
|
"description": _("Enable / disable currencies.") |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Sales Taxes and Charges Template", |
|
|
|
"description": _("Tax template for selling transactions.") |
|
|
|
"name": "Currency Exchange", |
|
|
|
"description": _("Currency exchange rate master.") |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Purchase Taxes and Charges Template", |
|
|
|
"description": _("Tax template for buying transactions.") |
|
|
|
"name": "Exchange Rate Revaluation", |
|
|
|
"description": _("Exchange Rate Revaluation master.") |
|
|
|
}, |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
"label": _("Settings"), |
|
|
|
"icon": "fa fa-cog", |
|
|
|
"items": [ |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Item Tax Template", |
|
|
|
"description": _("Tax template for item tax rates.") |
|
|
|
"name": "Payment Gateway Account", |
|
|
|
"description": _("Setup Gateway accounts.") |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Tax Rule", |
|
|
|
"description": _("Tax Rule for transactions.") |
|
|
|
"name": "Terms and Conditions", |
|
|
|
"label": _("Terms and Conditions Template"), |
|
|
|
"description": _("Template of terms or contract.") |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "Tax Withholding Category", |
|
|
|
"description": _("Tax Withholding rates to be applied on transactions.") |
|
|
|
"name": "Mode of Payment", |
|
|
|
"description": _("e.g. Bank, Cash, Credit Card") |
|
|
|
}, |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
"label": _("Subscription Management"), |
|
|
|
"icon": "fa fa-microchip ", |
|
|
|
"items": [ |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
@ -403,49 +429,37 @@ def get_data(): |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
"label": _("Key Reports"), |
|
|
|
"label": _("Bank Statement"), |
|
|
|
"items": [ |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Gross Profit", |
|
|
|
"doctype": "Sales Invoice", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Sales Register", |
|
|
|
"doctype": "Sales Invoice", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Purchase Register", |
|
|
|
"doctype": "Purchase Invoice", |
|
|
|
"is_query_report": True |
|
|
|
"type": "doctype", |
|
|
|
"label": _("Bank"), |
|
|
|
"name": "Bank", |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Purchase Invoice Trends", |
|
|
|
"is_query_report": True, |
|
|
|
"doctype": "Purchase Invoice" |
|
|
|
"type": "doctype", |
|
|
|
"label": _("Bank Account"), |
|
|
|
"name": "Bank Account", |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Sales Invoice Trends", |
|
|
|
"is_query_report": True, |
|
|
|
"doctype": "Sales Invoice" |
|
|
|
"type": "doctype", |
|
|
|
"name": "Bank Statement Transaction Entry", |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Item-wise Sales Register", |
|
|
|
"is_query_report": True, |
|
|
|
"doctype": "Sales Invoice" |
|
|
|
"type": "doctype", |
|
|
|
"label": _("Bank Statement Settings"), |
|
|
|
"name": "Bank Statement Settings", |
|
|
|
}, |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
"label": _("Profitability"), |
|
|
|
"items": [ |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Item-wise Purchase Register", |
|
|
|
"is_query_report": True, |
|
|
|
"doctype": "Purchase Invoice" |
|
|
|
"name": "Gross Profit", |
|
|
|
"doctype": "Sales Invoice", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
@ -455,20 +469,20 @@ def get_data(): |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Customer Ledger Summary", |
|
|
|
"doctype": "Sales Invoice", |
|
|
|
"name": "Sales Invoice Trends", |
|
|
|
"is_query_report": True, |
|
|
|
"doctype": "Sales Invoice" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Supplier Ledger Summary", |
|
|
|
"doctype": "Sales Invoice", |
|
|
|
"name": "Purchase Invoice Trends", |
|
|
|
"is_query_report": True, |
|
|
|
} |
|
|
|
"doctype": "Purchase Invoice" |
|
|
|
}, |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
"label": _("Other Reports"), |
|
|
|
"label": _("Reports"), |
|
|
|
"icon": "fa fa-table", |
|
|
|
"items": [ |
|
|
|
{ |
|
|
@ -489,18 +503,6 @@ def get_data(): |
|
|
|
"is_query_report": True, |
|
|
|
"doctype": "Sales Invoice" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Accounts Receivable Summary", |
|
|
|
"doctype": "Sales Invoice", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"name": "Accounts Payable Summary", |
|
|
|
"doctype": "Purchase Invoice", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "report", |
|
|
|
"is_query_report": True, |
|
|
@ -549,27 +551,7 @@ def get_data(): |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
"label": _("Help"), |
|
|
|
"icon": "fa fa-facetime-video", |
|
|
|
"items": [ |
|
|
|
{ |
|
|
|
"type": "help", |
|
|
|
"label": _("Chart of Accounts"), |
|
|
|
"youtube_id": "DyR-DST-PyA" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "help", |
|
|
|
"label": _("Opening Accounting Balance"), |
|
|
|
"youtube_id": "kdgM20Q-q68" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "help", |
|
|
|
"label": _("Setting up Taxes"), |
|
|
|
"youtube_id": "nQ1zZdPgdaQ" |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
gst = { |
|
|
@ -617,6 +599,12 @@ def get_data(): |
|
|
|
"name": "GST Itemised Purchase Register", |
|
|
|
"is_query_report": True |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "doctype", |
|
|
|
"name": "C-Form", |
|
|
|
"description": _("C-Form records"), |
|
|
|
"country": "India" |
|
|
|
}, |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
@ -624,6 +612,6 @@ def get_data(): |
|
|
|
countries = frappe.get_all("Company", fields="country") |
|
|
|
countries = [country["country"] for country in countries] |
|
|
|
if "India" in countries: |
|
|
|
config.insert(7, gst) |
|
|
|
config.insert(9, gst) |
|
|
|
domains = frappe.get_active_domains() |
|
|
|
return config |
|
|
|