[accounts] [feature] added default_cash_account in company and gets set in Journal Voucher

This commit is contained in:
Rushabh Mehta 2013-03-25 15:55:24 +05:30
parent 2f8ad5e5c1
commit e97ce3475d

View File

@ -154,7 +154,8 @@ cur_frm.cscript.voucher_type = function(doc, cdt, cdn) {
if(r.message) {
var jvdetail = wn.model.add_child(doc, "Journal Voucher Detail", "entries");
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");
}
}