[WIP] Process Payroll Changes

This commit is contained in:
Kanchan Chauhan
2016-08-26 11:11:17 +05:30
parent 1f53aaf093
commit b40c0a917d
21 changed files with 787 additions and 198 deletions

View File

@@ -81,6 +81,14 @@ frappe.ui.form.on('Payment Entry', {
}
})
frappe.ui.form.on('Salary Structure', {
mode_of_payment: function(frm) {
get_payment_mode_account(frm, frm.doc.mode_of_payment, function(account){
frm.set_value("payment_account", account);
})
}
})
get_payment_mode_account = function(frm, mode_of_payment, callback){
return frappe.call({
method: "erpnext.accounts.doctype.sales_invoice.sales_invoice.get_bank_cash_account",