mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
[accounts] [feature] added default_cash_account in company and gets set in Journal Voucher
This commit is contained in:
@@ -154,7 +154,8 @@ cur_frm.cscript.voucher_type = function(doc, cdt, cdn) {
|
|||||||
if(r.message) {
|
if(r.message) {
|
||||||
var jvdetail = wn.model.add_child(doc, "Journal Voucher Detail", "entries");
|
var jvdetail = wn.model.add_child(doc, "Journal Voucher Detail", "entries");
|
||||||
jvdetail.account = r.message.account;
|
jvdetail.account = r.message.account;
|
||||||
jvdetail.balance = r.message.balance;
|
// this is a data field????
|
||||||
|
jvdetail.balance = format_currency(r.message.balance);
|
||||||
refresh_field("entries");
|
refresh_field("entries");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user