fix(PCV): set correct filters of from_date and to_date on General Ledger Report on clicking Ledger button (#54522)

This commit is contained in:
diptanilsaha
2026-04-25 00:03:38 +05:30
committed by GitHub
parent e517eeaaa2
commit ebca389136

View File

@@ -46,8 +46,8 @@ frappe.ui.form.on("Period Closing Voucher", {
function () {
frappe.route_options = {
voucher_no: frm.doc.name,
from_date: frm.doc.posting_date,
to_date: moment(frm.doc.modified).format("YYYY-MM-DD"),
from_date: frm.doc.period_start_date,
to_date: frm.doc.period_end_date,
company: frm.doc.company,
categorize_by: "",
show_cancelled_entries: frm.doc.docstatus === 2,