Why are we not able to find the “Repost Accounting Entries” button anymore in the Transaction
I have allowed some transactions from the Reposting settings as well
earlier it used to show up at the moment we change the accounting head in the transaction
Here is the “Repost Accounting Entries” button image I am referring to
I did the same, then I raised the issue when I didn’t find the button after
Check Repost Accounting Ledger Settings, you need to add Sales Invoice there, if you updated and this doctype broken do correct it and migrate once
@riddhi1 alternative, you can add custom client script to show button.
frappe.ui.form.on('Sales Invoice', {
refresh: function(frm) {
if (frm.doc.docstatus === 1) {
frm.add_custom_button(__('Repost Accounting Ledger'), function() {
// Create new Repost Accounting Ledger document
let repost_doc = frappe.model.get_new_doc('Repost Accounting Ledger');
repost_doc.company = frm.doc.company;
// Add a row to the vouchers child table
let row = frappe.model.add_child(repost_doc, 'Repost Accounting Ledger Items', 'vouchers');
row.voucher_type = frm.doc.doctype;
row.voucher_no = frm.doc.name;
// Navigate to the new document
frappe.set_route('Form', 'Repost Accounting Ledger', repost_doc.name);
}, __("Create"));
}
}
});
as i said, i already allowed some transactions
Update Button is also doing the reposting in GLs as Reposting Button used to be unnecessary click of a mouse.

