[minor] [fix] make bank voucher form expense claim
This commit is contained in:
parent
43d7de8cdc
commit
5230318445
@ -25,9 +25,11 @@ erpnext.hr.ExpenseClaimController = wn.ui.form.Controller.extend({
|
|||||||
|
|
||||||
// credit to bank
|
// credit to bank
|
||||||
var d1 = wn.model.add_child(jv, 'Journal Voucher Detail', 'entries');
|
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.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);
|
loaddoc('Journal Voucher', jv.name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user