bank reconciliation fix

This commit is contained in:
Nabin Hait 2015-01-19 14:21:02 +05:30
parent 71a6b93d89
commit 0a3e5653ba
2 changed files with 99 additions and 82 deletions

View File

@ -16,3 +16,20 @@ cur_frm.cscript.onload = function(doc, cdt, cdn){
}; };
}); });
} }
frappe.ui.form.on("Bank Reconciliation", "update_clearance_date", function(frm) {
return frappe.call({
method: "update_details",
doc: frm.doc
})
})
frappe.ui.form.on("Bank Reconciliation", "get_relevant_entries", function(frm) {
return frappe.call({
method: "get_details",
doc: frm.doc,
callback: function(r, rt) {
frm.refresh()
}
})
})

View File

@ -54,7 +54,7 @@
"fieldname": "get_relevant_entries", "fieldname": "get_relevant_entries",
"fieldtype": "Button", "fieldtype": "Button",
"label": "Get Relevant Entries", "label": "Get Relevant Entries",
"options": "get_details", "options": "",
"permlevel": 0 "permlevel": 0
}, },
{ {
@ -68,7 +68,7 @@
"fieldname": "update_clearance_date", "fieldname": "update_clearance_date",
"fieldtype": "Button", "fieldtype": "Button",
"label": "Update Clearance Date", "label": "Update Clearance Date",
"options": "update_details", "options": "",
"permlevel": 0 "permlevel": 0
}, },
{ {
@ -85,7 +85,7 @@
"icon": "icon-check", "icon": "icon-check",
"idx": 1, "idx": 1,
"issingle": 1, "issingle": 1,
"modified": "2014-12-25 13:16:16.711609", "modified": "2015-01-19 07:49:15.830001",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Accounts", "module": "Accounts",
"name": "Bank Reconciliation", "name": "Bank Reconciliation",