Opening Balance v15

Testing ERPNext version 15, I’m wondering if someone can verify, but I’m trying to add an opening Journal entry, “New Journal Entry”, Type Opening Balance, but none of my CoA pulls in for editing, and my Temporary account doesn’t appear as well.

According to the Video and instructions, selecting the Opening Balance should pull in the COA and Add the difference to the Temporary Account, but it;s not.
Is this typical behaviour or should this be reported as a bug?

Thanks in advance.

Hi @jroyDC,

Perhaps it used to function in the previous version, but it was removed because sometimes users or clients don’t need to get all accounts when entering the opening data.

However, if you require it, you can apply a client script for that purpose.

frappe.ui.form.on('Journal Entry', {
    voucher_type: function(frm) {
        if (frm.doc.voucher_type === "Opening Entry") {

            frm.clear_table("accounts");

            frappe.db.get_list('Account', {
                filters: { 'is_group': 0, 'company': frm.doc.company },
                fields: ['name'],
                limit: null
            }).then(accounts => {

                accounts.forEach(account => {
                    var row = frappe.model.add_child(frm.doc, "Journal Entry Account", "accounts");
                    row.account = account.name;
                });
                frm.refresh_field("accounts");
            });
        }
    }
});

Please set it according to the scenario.

I hope this helps.

Thank You!

That Client Script worked like a charm, thank you!!!