-
+
{{ item.item_name }}
{{ _('More details') }}
From b2ab1031e35acfee35816dcf4cc68d4d441707e4 Mon Sep 17 00:00:00 2001
From: Faris Ansari
Date: Fri, 14 Jun 2019 18:16:14 +0530
Subject: [PATCH 11/13] fix: Show Clear filters when attribute filters are set
---
erpnext/www/all-products/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/erpnext/www/all-products/index.html b/erpnext/www/all-products/index.html
index ade72a25ce..f09021412b 100644
--- a/erpnext/www/all-products/index.html
+++ b/erpnext/www/all-products/index.html
@@ -42,7 +42,7 @@
- {% if frappe.form_dict.start or frappe.form_dict.field_filters or frappe.form_dict.search %}
+ {% if frappe.form_dict.start or frappe.form_dict.field_filters or frappe.form_dict.attribute_filters or frappe.form_dict.search %}
{{ _('Clear filters') }}
{% endif %}
From 8e99aaf6050afdf258343397c5e70109e89b56ea Mon Sep 17 00:00:00 2001
From: Faris Ansari
Date: Fri, 14 Jun 2019 20:06:54 +0530
Subject: [PATCH 12/13] fix: Add erpnext website theme import
---
erpnext/public/js/website_theme.js | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/erpnext/public/js/website_theme.js b/erpnext/public/js/website_theme.js
index 6c7edfa655..84de2f5b51 100644
--- a/erpnext/public/js/website_theme.js
+++ b/erpnext/public/js/website_theme.js
@@ -2,16 +2,13 @@
// MIT License. See license.txt
frappe.ui.form.on('Website Theme', {
- apply_custom_theme(frm) {
- let custom_theme = frm.doc.custom_theme;
- custom_theme = custom_theme.split('\n');
- if (
- frm.doc.apply_custom_theme
- && custom_theme.length === 2
- && custom_theme[1].includes('frappe/public/scss/website')
+ validate(frm) {
+ let theme_scss = frm.doc.theme_scss;
+ if (theme_scss.includes('frappe/public/scss/website')
+ && !theme_scss.includes('erpnext/public/scss/website')
) {
- frm.set_value('custom_theme',
- `$primary: #7575ff;\n@import "frappe/public/scss/website";\n@import "erpnext/public/scss/website";`);
+ frm.set_value('theme_scss',
+ `${frm.doc.theme_scss}\n@import "erpnext/public/scss/website";`);
}
}
});
From b821af44b6af3d9d1bfd12a2ae371711873f6801 Mon Sep 17 00:00:00 2001
From: Rohit Waghchaure
Date: Mon, 17 Jun 2019 07:40:21 +0530
Subject: [PATCH 13/13] fix: revert group by voucher general ledger changes
---
erpnext/accounts/report/general_ledger/general_ledger.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/erpnext/accounts/report/general_ledger/general_ledger.py b/erpnext/accounts/report/general_ledger/general_ledger.py
index 307b72d4e8..d9f395b895 100644
--- a/erpnext/accounts/report/general_ledger/general_ledger.py
+++ b/erpnext/accounts/report/general_ledger/general_ledger.py
@@ -128,7 +128,8 @@ def get_gl_entries(filters):
order_by_statement = "order by posting_date, voucher_type, voucher_no"
if filters.get("group_by") == _("Group by Voucher (Consolidated)"):
- group_by_statement = "group by voucher_type, voucher_no, account, cost_center, against_voucher"
+ group_by_statement = "group by voucher_type, voucher_no, account, cost_center"
+
select_fields = """, sum(debit) as debit, sum(credit) as credit,
sum(debit_in_account_currency) as debit_in_account_currency,
sum(credit_in_account_currency) as credit_in_account_currency"""