added moduleview

This commit is contained in:
Rushabh Mehta
2013-01-09 16:39:27 +05:30
parent 996c30a575
commit ce1d5276ff
28 changed files with 1117 additions and 1086 deletions

View File

@@ -1,142 +0,0 @@
<div class="layout-wrapper layout-wrapper-background">
<div class="appframe-area"></div>
<div class="layout-main-section">
<div style="width: 48%; float: left;">
<h5><a href="#List/Journal Voucher">Journal Voucher</a></h5>
<p class="help">General Ledger Entries</p>
<br>
<h5><a href="#List/Sales Invoice">Sales Invoice</a></h5>
<p class="help">Bills raised to Customers</p>
<br>
<h5><a href="#List/Purchase Invoice">Purchase Invoice</a></h5>
<p class="help">Bills raised by Suppliers</p>
</div>
<div style="width: 48%; float: right;">
<h5><a href="#Accounts Browser/Account"
data-role="Accounts Manager, Accounts User">Chart of Accounts</a></h5>
<p class="help">Structure of books of accounts</p>
<br>
<h5><a href="#Accounts Browser/Cost Center">Chart of Cost Centers</a></h5>
<p class="help">Structure cost centers</p>
</div>
<div style="clear: both"></div>
<hr>
<h4>Reports</h4>
<div style="width: 48%; float: left;">
<h5><a href="#general-ledger"
data-role="Analytics, Accounts Manager, Accounts User">
General Ledger</a>
</h5>
<p class="help">General Ledger Report</p>
<br>
<h5><a href="#trial-balance"
data-role="Analytics, Accounts Manager, Accounts User">Trial Balance</a>
</h5>
<p class="help">Tree view of all Account balances</p>
</div>
<div style="width: 48%; float: right;">
<h5><a href="#financial-analytics"
data-role="Analytics, Accounts Manager, Accounts User">
Financial Analytics</a>
</h5>
<p class="help">Visual representation of financial trends</p>
</div>
<div style="clear: both;"></div>
<hr>
<div class="reports-list"></div>
</div>
<div class="layout-side-section">
<div class="psidebar">
<div class="section">
<div class="section-head">Tools</div>
<div class="section-body">
<div class="section-item">
<a class="section-link"
title="Update system bank entries (JV) with actual bank trasaction"
href="#Form/Bank Reconciliation/Bank Reconciliation">Bank Reconciliation</a>
</div>
<div class="section-item">
<a class="section-link"
title="Cancel off untracked Payments (JV) against Invoices"
href="#Form/Payment to Invoice Matching Tool/Payment to Invoice Matching Tool">Payment Reconciliation</a>
</div>
<div class="section-item">
<a class="section-link"
title="Clear your P/L account and balance your Balance Sheets"
href="#List/Period Closing Voucher">Close Period Entry</a>
</div>
<div class="section-item">
<a class="section-link"
title = "Helper for managing return of goods (sales or purchase)"
href="#Form/Sales and Purchase Return Tool/Sales and Purchase Return Tool">Sales or Purchase Returns</a>
</div>
<div class="section-item">
<a class="section-link"
data-role="Accounts Manager, Accounts User"
title = "Analyze Sales and Purchase trends and slice them based on item, customer, groups etc"
href="#Report/Profile/Trend Analyzer">Trend Analyzer</a>
</div>
<div class="section-item">
<a class="section-link"
data-role="Accounts Manager, Accounts User"
title = "Check your Balance Sheet and Profit & Loss Statement"
href="#Financial Statements">Financial Statements</a>
</div>
<div class="section-item">
<a class="section-link" data-role="Accounts Manager"
title = "Import Multiple Vouchers from CSV"
href="#voucher-import-tool">Voucher Import Tool</a>
</div>
</div>
</div>
<div class="section">
<div class="section-head">Setup</div>
<div class="section-body">
<div class="section-item">
<a class="section-link"
title = "Tax and charges structure master on sales transactions"
href="#List/Sales Taxes and Charges Master">Sales Taxes and Charges Master</a>
</div>
<div class="section-item">
<a class="section-link"
title = "Tax and charges structure master on purchase transactions"
href="#List/Purchase Taxes and Charges Master">Purchase Taxes and Charges Master</a>
</div>
<div class="section-item">
<a class="section-link"
title = "Defaults for Point of Sale (Retail) type of Invoices"
href="#List/POS Setting">Point of Sale (PoS) Setting</a>
</div>
<div class="section-item">
<a class="section-link"
title = "Seasonal distributions for budgets"
href="#List/Budget Distribution">Budget Distribution</a>
</div>
<div class="section-item">
<a class="section-link"
title = "Terms of contract template"
href="#List/Terms and Conditions">Terms and Conditions Template</a>
</div>
<div class="section-item">
<a class="section-link"
title = "Mode of Payment master"
href="#List/Mode of Payment">Mode of Payment</a>
</div>
</div>
</div>
<div class="section india-specific">
<div class="section-head">India Specific</div>
<div class="section-body">
<div class="section-item">
<a class="section-link"
title = "C-Forms received from customers"
href="#List/C-Form">C-Form</a>
</div>
</div>
</div>
</div>
</div>
<div style="clear: both;"></div>
</div>

View File

@@ -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");
}