Skip to content

Commit

Permalink
fix(UX): Ignore prepared report
Browse files Browse the repository at this point in the history
(cherry picked from commit 124c0db)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed Aug 16, 2023
1 parent 67c8350 commit 3e23e1f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions erpnext/public/js/controllers/stock_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ erpnext.stock.StockController = class StockController extends frappe.ui.form.Con
from_date: me.frm.doc.posting_date,
to_date: moment(me.frm.doc.modified).format('YYYY-MM-DD'),
company: me.frm.doc.company,
show_cancelled_entries: me.frm.doc.docstatus === 2
show_cancelled_entries: me.frm.doc.docstatus === 2,
ignore_prepared_report: true
};
frappe.set_route("query-report", "Stock Ledger");
}, __("View"));
Expand All @@ -75,7 +76,8 @@ erpnext.stock.StockController = class StockController extends frappe.ui.form.Con
to_date: moment(me.frm.doc.modified).format('YYYY-MM-DD'),
company: me.frm.doc.company,
group_by: "Group by Voucher (Consolidated)",
show_cancelled_entries: me.frm.doc.docstatus === 2
show_cancelled_entries: me.frm.doc.docstatus === 2,
ignore_prepared_report: true
};
frappe.set_route("query-report", "General Ledger");
}, __("View"));
Expand Down

0 comments on commit 3e23e1f

Please sign in to comment.