mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 22:18:27 +00:00
chore: revert 'stub'
This commit is contained in:
@@ -620,7 +620,7 @@ def get_cost_centers_with_children(cost_centers):
|
|||||||
def get_columns(periodicity, period_list, accumulated_values=1, company=None, cash_flow=False):
|
def get_columns(periodicity, period_list, accumulated_values=1, company=None, cash_flow=False):
|
||||||
columns = [
|
columns = [
|
||||||
{
|
{
|
||||||
"fieldname": "stub",
|
"fieldname": "account",
|
||||||
"label": _("Account") if not cash_flow else _("Section"),
|
"label": _("Account") if not cash_flow else _("Section"),
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Account",
|
"options": "Account",
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ erpnext.financial_statements = {
|
|||||||
|
|
||||||
return value;
|
return value;
|
||||||
} else if (frappe.query_report.get_filter_value("selected_view") == "Margin" && data) {
|
} else if (frappe.query_report.get_filter_value("selected_view") == "Margin" && data) {
|
||||||
if (column.fieldname == "stub" && data.account_name == __("Income")) {
|
if (column.fieldname == "account" && data.account_name == __("Income")) {
|
||||||
//Taking the total income from each column (for all the financial years) as the base (100%)
|
//Taking the total income from each column (for all the financial years) as the base (100%)
|
||||||
this.baseData = row;
|
this.baseData = row;
|
||||||
}
|
}
|
||||||
@@ -45,7 +45,7 @@ erpnext.financial_statements = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data && column.fieldname == "stub") {
|
if (data && column.fieldname == "account") {
|
||||||
// first column
|
// first column
|
||||||
value = data.section_name || data.account_name || value;
|
value = data.section_name || data.account_name || value;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user