mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
[usability] journal entry type fixes #3085
This commit is contained in:
@@ -224,8 +224,9 @@ cur_frm.cscript.voucher_type = function(doc, cdt, cdn) {
|
|||||||
cur_frm.set_df_property("cheque_no", "reqd", doc.voucher_type=="Bank Entry");
|
cur_frm.set_df_property("cheque_no", "reqd", doc.voucher_type=="Bank Entry");
|
||||||
cur_frm.set_df_property("cheque_date", "reqd", doc.voucher_type=="Bank Entry");
|
cur_frm.set_df_property("cheque_date", "reqd", doc.voucher_type=="Bank Entry");
|
||||||
|
|
||||||
if((doc.accounts || []).length!==0 || !doc.company) // too early
|
if(!doc.company) return;
|
||||||
return;
|
|
||||||
|
cur_frm.clear_table("accounts");
|
||||||
|
|
||||||
var update_jv_details = function(doc, r) {
|
var update_jv_details = function(doc, r) {
|
||||||
var jvdetail = frappe.model.add_child(doc, "Journal Entry Account", "accounts");
|
var jvdetail = frappe.model.add_child(doc, "Journal Entry Account", "accounts");
|
||||||
|
|||||||
Reference in New Issue
Block a user