Skip to content

Commit

Permalink
fix: Opening journal entry templates
Browse files Browse the repository at this point in the history
(cherry picked from commit 33b61ae)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed Nov 16, 2022
1 parent ec6a01d commit 4ad3e28
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,6 @@ frappe.ui.form.on("Journal Entry Template", {

frm.trigger("clear_child");
switch(frm.doc.voucher_type){
case "Opening Entry":
frm.set_value("is_opening", "Yes");
frappe.call({
type:"GET",
method: "erpnext.accounts.doctype.journal_entry.journal_entry.get_opening_accounts",
args: {
"company": frm.doc.company
},
callback: function(r) {
if(r.message) {
add_accounts(frm.doc, r.message);
}
}
});
break;
case "Bank Entry":
case "Cash Entry":
frappe.call({
Expand Down

0 comments on commit 4ad3e28

Please sign in to comment.