Use include directive to embed common print format

This commit is contained in:
Anand Doshi 2014-07-21 11:43:03 +05:30
parent db4ba39824
commit 6cc5babd2e
4 changed files with 2 additions and 4 deletions

View File

@ -0,0 +1 @@
{% include "accounts/report/financial_statements.html" %}

View File

@ -5,8 +5,6 @@ from __future__ import unicode_literals
import frappe
from erpnext.accounts.report.financial_statements import (process_filters, get_period_list, get_columns, get_data)
print_path = "accounts/report/financial_statements.html"
def execute(filters=None):
process_filters(filters)
period_list = get_period_list(filters.fiscal_year, filters.periodicity, from_beginning=True)

View File

@ -0,0 +1 @@
{% include "accounts/report/financial_statements.html" %}

View File

@ -7,8 +7,6 @@ from frappe import _
from frappe.utils import flt
from erpnext.accounts.report.financial_statements import (process_filters, get_period_list, get_columns, get_data)
print_path = "accounts/report/financial_statements.html"
def execute(filters=None):
process_filters(filters)
period_list = get_period_list(filters.fiscal_year, filters.periodicity)