2
0
mirror of https://github.com/frappe/books.git synced 2025-01-08 17:24:05 +00:00

filter to show only uncacnelled invoices

This commit is contained in:
Ankit Singhaniya 2021-12-15 00:35:51 +05:30 committed by Alan
parent c0c1c26d8d
commit 679904ac6a

View File

@ -5,6 +5,7 @@ class GSTR1 extends BaseGSTR {
if (!Object.keys(params).length) return [];
let filters = {};
filters.cancelled = 0;
if (params.toDate || params.fromDate) {
filters.date = [];
if (params.toDate) filters.date.push('<=', params.toDate);