Redesigned templates. Now all templates must be inside templates/pages templates/generators
diff --git a/erpnext/templates/pages/invoices.py b/erpnext/templates/pages/invoices.py
new file mode 100644
index 0000000..448c525
--- /dev/null
+++ b/erpnext/templates/pages/invoices.py
@@ -0,0 +1,28 @@
+# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
+# License: GNU General Public License v3. See license.txt
+
+from __future__ import unicode_literals
+import webnotes
+
+no_cache = True
+
+def get_context():
+ from erpnext.templates.utils import get_currency_context
+ context = get_currency_context()
+ context.update({
+ "title": "Invoices",
+ "method": "accounts.doctype.sales_invoice.templates.pages.invoices.get_invoices",
+ "icon": "icon-file-text",
+ "empty_list_message": "No Invoices Found",
+ "page": "invoice"
+ })
+ return context
+
+@webnotes.whitelist()
+def get_invoices(start=0):
+ from erpnext.templates.utils import get_transaction_list
+ from erpnext.accounts.doctype.sales_invoice.templates.pages.invoice import modify_status
+ invoices = get_transaction_list("Sales Invoice", start, ["outstanding_amount"])
+ for d in invoices:
+ modify_status(d)
+ return invoices
\ No newline at end of file