mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-01 20:48:27 +00:00
[minor] [fix] make bank voucher form expense claim
This commit is contained in:
@@ -25,9 +25,11 @@ erpnext.hr.ExpenseClaimController = wn.ui.form.Controller.extend({
|
||||
|
||||
// credit to bank
|
||||
var d1 = wn.model.add_child(jv, 'Journal Voucher Detail', 'entries');
|
||||
d1.account = r.message[0].account;
|
||||
d1.credit = cur_frm.doc.total_sanctioned_amount;
|
||||
d1.balance = r.message[0].balance;
|
||||
if(r.message) {
|
||||
d1.account = r.message[0].account;
|
||||
d1.balance = r.message[0].balance;
|
||||
}
|
||||
|
||||
loaddoc('Journal Voucher', jv.name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user