mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
added moduleview
This commit is contained in:
@@ -1,25 +1,172 @@
|
||||
// ERPNext - web based ERP (http://erpnext.com)
|
||||
// Copyright (C) 2012 Web Notes Technologies Pvt Ltd
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// ERPNext: Copyright 2013 Web Notes Technologies Pvt Ltd
|
||||
// GNU General Public License. See "license.txt"
|
||||
|
||||
wn.module_page["Accounts"] = [
|
||||
{
|
||||
title: wn._("Documents"),
|
||||
icon: "icon-copy",
|
||||
items: [
|
||||
{
|
||||
label: wn._("Journal Voucher"),
|
||||
description: wn._("Accounting journal entries."),
|
||||
doctype:"Journal Voucher"
|
||||
},
|
||||
{
|
||||
label: wn._("Sales Invoice"),
|
||||
description: wn._("Bills raised to Customers."),
|
||||
doctype:"Sales Invoice"
|
||||
},
|
||||
{
|
||||
label: wn._("Purchase Invoice"),
|
||||
description: wn._("Bills raised by Suppliers."),
|
||||
doctype:"Purchase Invoice"
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
title: wn._("Masters"),
|
||||
icon: "icon-book",
|
||||
items: [
|
||||
{
|
||||
label: wn._("Chart of Accounts"),
|
||||
route: "Accounts Browser/Account",
|
||||
description: wn._("Structure of books of accounts."),
|
||||
doctype:"Account"
|
||||
},
|
||||
{
|
||||
label: wn._("Chart of Cost Centers"),
|
||||
route: "Accounts Browser/Cost Center",
|
||||
description: wn._("Structure cost centers for budgeting."),
|
||||
doctype:"Cost Center"
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
title: wn._("Tools"),
|
||||
icon: "icon-wrench",
|
||||
items: [
|
||||
{
|
||||
"route":"#Form/Bank Reconciliation/Bank Reconciliation",
|
||||
"label": wn._("Bank Reconciliation"),
|
||||
"description": wn._("Update bank payment dates with journals."),
|
||||
doctype: "Bank Reconciliation"
|
||||
},
|
||||
{
|
||||
"route":"#Form/Payment to Invoice Matching Tool/Payment to Invoice Matching Tool",
|
||||
"label": wn._("Payment Reconciliation"),
|
||||
"description": wn._("Match non-linked Invoices and Payments."),
|
||||
doctype: "Payment to Invoice Matching Tool"
|
||||
|
||||
},
|
||||
{
|
||||
"label": wn._("Period Closing Voucher"),
|
||||
"doctype": "Period Closing Voucher",
|
||||
description: "Close Balance Sheet and book Profit or Loss."
|
||||
},
|
||||
{
|
||||
"route":"#Form/Sales and Purchase Return Tool/Sales and Purchase Return Tool",
|
||||
"label": wn._("Sales and Purchase Return Tool"),
|
||||
description: wn._("Manage sales or purchase returns"),
|
||||
"doctype": "Sales and Purchase Return Tool"
|
||||
},
|
||||
{
|
||||
"page":"voucher-import-tool",
|
||||
"label": wn._("Voucher Import Tool"),
|
||||
"description": "Import accounting entries from CSV."
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
title: wn._("Setup"),
|
||||
icon: "icon-cog",
|
||||
items: [
|
||||
{
|
||||
"label": wn._("Sales Taxes and Charges Master"),
|
||||
"doctype":"Sales Taxes and Charges Master",
|
||||
"description": wn._("Tax Template for Sales")
|
||||
},
|
||||
{
|
||||
"label": wn._("Purchase Taxes and Charges Master"),
|
||||
"doctype":"Purchase Taxes and Charges Master",
|
||||
"description": wn._("Tax Template for Purchase")
|
||||
},
|
||||
{
|
||||
"label": wn._("Point-of-Sale Setting"),
|
||||
"doctype":"POS Setting",
|
||||
"description": "User settings for Point-of-sale (POS)"
|
||||
},
|
||||
{
|
||||
"doctype":"Budget Distribution",
|
||||
"label": wn._("Budget Distribution"),
|
||||
"description": wn._("Seasonality for setting budgets.")
|
||||
},
|
||||
{
|
||||
"doctype":"Terms and Conditions",
|
||||
"label": wn._("Terms and Conditions Template"),
|
||||
description: wn._("Template of terms or contract.")
|
||||
},
|
||||
{
|
||||
"doctype":"Mode of Payment",
|
||||
"label": wn._("Mode of Payment"),
|
||||
description: wn._("e.g. Bank, Cash, Credit Card")
|
||||
},
|
||||
{
|
||||
"doctype":"C-Form",
|
||||
"label": wn._("C-Form"),
|
||||
description: "C-Form records",
|
||||
country: "India"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
title: wn._("Main Reports"),
|
||||
right: true,
|
||||
icon: "icon-table",
|
||||
items: [
|
||||
{
|
||||
"label":wn._("General Ledger"),
|
||||
page: "general-ledger"
|
||||
},
|
||||
{
|
||||
"label":wn._("Trial Balance"),
|
||||
page: "trial-balance"
|
||||
},
|
||||
{
|
||||
"page":"Financial Statements",
|
||||
"label": wn._("Financial Statements")
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
title: wn._("Analytics"),
|
||||
right: true,
|
||||
icon: "icon-bar-chart",
|
||||
items: [
|
||||
{
|
||||
"label":wn._("Financial Analytics"),
|
||||
page: "financial-analytics"
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
title: wn._("Reports"),
|
||||
right: true,
|
||||
icon: "icon-list",
|
||||
items: [
|
||||
{
|
||||
"label":wn._("Delivered Items To Be Billed"),
|
||||
route: "query-report/Delivered Items To Be Billed",
|
||||
doctype: "Sales Invoice"
|
||||
},
|
||||
{
|
||||
"label":wn._("Ordered Items To Be Billed"),
|
||||
route: "query-report/Ordered Items To Be Billed",
|
||||
doctype: "Sales Invoice"
|
||||
},
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
pscript['onload_accounts-home'] = function(wrapper) {
|
||||
wrapper.appframe = new wn.ui.AppFrame($(wrapper).find('.appframe-area'), 'Accounts');
|
||||
erpnext.module_page.setup_page('Accounts', wrapper);
|
||||
|
||||
if(wn.control_panel.country!='India') {
|
||||
$('.india-specific').toggle(false);
|
||||
}
|
||||
|
||||
}
|
||||
wn.views.moduleview.make(wrapper, "Accounts");
|
||||
}
|
||||
Reference in New Issue
Block a user