Skip to content

Commit f3996fb

Browse files
fix(PCV): set correct filters of from_date and to_date on General Ledger Report on clicking Ledger button (backport #54522) (#54524)
Co-authored-by: diptanilsaha <diptanil@frappe.io> fix(PCV): set correct filters of `from_date` and `to_date` on General Ledger Report on clicking `Ledger` button (#54522)
1 parent 8a5fa64 commit f3996fb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ frappe.ui.form.on("Period Closing Voucher", {
4646
function () {
4747
frappe.route_options = {
4848
voucher_no: frm.doc.name,
49-
from_date: frm.doc.posting_date,
50-
to_date: moment(frm.doc.modified).format("YYYY-MM-DD"),
49+
from_date: frm.doc.period_start_date,
50+
to_date: frm.doc.period_end_date,
5151
company: frm.doc.company,
5252
categorize_by: "",
5353
show_cancelled_entries: frm.doc.docstatus === 2,

0 commit comments

Comments
 (0)