[Minor] Report related fixes (#14620)

* fix in query incase list is empty

* periodicity not found error
when called from consolidated financial statements and custom cash flow is activated

* unset currency filter to apply default currency or so

* python 2 - 3 fix
This commit is contained in:
Zarrar
2018-06-21 10:53:12 +05:30
committed by Nabin Hait
parent 51e4d641c8
commit e25dcd2737
3 changed files with 20 additions and 18 deletions

View File

@@ -15,7 +15,8 @@ $.extend(erpnext, {
get_presentation_currency_list: () => {
const docs = frappe.boot.docs;
const currency_list = docs.filter(d => d.doctype === ":Currency").map(d => d.name);
let currency_list = docs.filter(d => d.doctype === ":Currency").map(d => d.name);
currency_list.unshift("");
return currency_list;
},