[minor] allow float in amount

This commit is contained in:
Rushabh Mehta 2017-03-07 17:11:56 +05:30
parent 46423117b8
commit 27312e2129

View file

@ -13,7 +13,7 @@ frappe.web_form = {
}
})
var currency_fields = $.map(frappe.get_doc("DocType", frm.doc.doc_type).fields, function(d) {
if (d.fieldtype === 'Currency') {
if (d.fieldtype === 'Currency' || d.fieldtype === 'Float') {
return { label: d.label, value: d.fieldname }
} else {
return null;