Fixed issues

This commit is contained in:
Neil Trini Lasrado
2014-10-07 12:50:17 +05:30
parent 78fa6954e5
commit e6b14a4bf6
7 changed files with 22 additions and 29 deletions

View File

@@ -12,13 +12,13 @@ $.extend(erpnext, {
return frappe.boot.sysdefaults.currency;
},
get_fiscal_year: function(doc) {
get_fiscal_year: function(company, date) {
frappe.call({
type:"GET",
method: "erpnext.accounts.utils.get_fiscal_year",
args: {
"company": doc.company,
"date": doc.posting_date,
"company": company,
"date": date,
"verbose": '0'
},
callback: function(r) {