| # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors |
| # License: GNU General Public License v3. See license.txt |
| from __future__ import unicode_literals |
| from erpnext.templates.utils import get_currency_context |
| def get_context(context): |
| invoices_context = get_currency_context() |
| invoices_context.update({ |
| "method": "erpnext.templates.pages.invoices.get_invoices", |
| "icon": "icon-file-text", |
| "empty_list_message": "No Invoices Found", |
| def get_invoices(start=0): |
| from erpnext.templates.utils import get_transaction_list |
| from erpnext.templates.pages.invoice import modify_status |
| invoices = get_transaction_list("Sales Invoice", start, ["outstanding_amount"]) |