Export total labels
diff --git a/erpnext/accounts/report/balance_sheet/balance_sheet.py b/erpnext/accounts/report/balance_sheet/balance_sheet.py
index 7e57dce..4325afc 100644
--- a/erpnext/accounts/report/balance_sheet/balance_sheet.py
+++ b/erpnext/accounts/report/balance_sheet/balance_sheet.py
@@ -26,7 +26,7 @@
if opening_balance and round(opening_balance,2) !=0:
unclosed ={
"account_name": "'" + _("Unclosed Fiscal Years Profit / Loss (Credit)") + "'",
- "account": None,
+ "account": "'" + _("Unclosed Fiscal Years Profit / Loss (Credit)") + "'",
"warn_if_negative": True,
"currency": frappe.db.get_value("Company", filters.company, "default_currency")
}
@@ -57,7 +57,7 @@
currency = frappe.db.get_value("Company", company, "default_currency")
total_row = {
"account_name": "'" + _("Total (Credit)") + "'",
- "account": None,
+ "account": "'" + _("Total (Credit)") + "'",
"warn_if_negative": True,
"currency": currency
}
@@ -85,7 +85,7 @@
if has_value:
provisional_profit_loss.update({
"account_name": "'" + _("Provisional Profit / Loss (Credit)") + "'",
- "account": None,
+ "account": "'" + _("Provisional Profit / Loss (Credit)") + "'",
"warn_if_negative": True,
"currency": currency
})
diff --git a/erpnext/accounts/report/financial_statements.py b/erpnext/accounts/report/financial_statements.py
index fb1c4ac..80b0bf2 100644
--- a/erpnext/accounts/report/financial_statements.py
+++ b/erpnext/accounts/report/financial_statements.py
@@ -216,7 +216,7 @@
def add_total_row(out, root_type, balance_must_be, period_list, company_currency):
total_row = {
"account_name": "'" + _("Total {0} ({1})").format(root_type, balance_must_be) + "'",
- "account": None,
+ "account": "'" + _("Total {0} ({1})").format(root_type, balance_must_be) + "'",
"currency": company_currency
}
diff --git a/erpnext/accounts/report/profitability_analysis/profitability_analysis.py b/erpnext/accounts/report/profitability_analysis/profitability_analysis.py
index c0a4212..8bc1954 100644
--- a/erpnext/accounts/report/profitability_analysis/profitability_analysis.py
+++ b/erpnext/accounts/report/profitability_analysis/profitability_analysis.py
@@ -60,7 +60,11 @@
"warn_if_negative": True,
"income": 0.0,
"expense": 0.0,
- "gross_profit_loss": 0.0
+ "gross_profit_loss": 0.0,
+ "account": "'" + _("Total") + "'",
+ "parent_account": None,
+ "indent": 0,
+ "has_value": True
}
for d in accounts:
diff --git a/erpnext/accounts/report/trial_balance/trial_balance.py b/erpnext/accounts/report/trial_balance/trial_balance.py
index 7609d1d..5f606e4 100644
--- a/erpnext/accounts/report/trial_balance/trial_balance.py
+++ b/erpnext/accounts/report/trial_balance/trial_balance.py
@@ -130,11 +130,14 @@
}
total_row = {
- "account": None,
- "account_name": _("Total"),
+ "account": "'" + _("Total") + "'",
+ "account_name": "'" + _("Total") + "'",
"warn_if_negative": True,
"debit": 0.0,
- "credit": 0.0
+ "credit": 0.0,
+ "parent_account": None,
+ "indent": 0,
+ "has_value": True
}
for d in accounts: