From a294ca20bcbfcd0d70864859b6eb4c14c709a537 Mon Sep 17 00:00:00 2001 From: Piyush Singhania Date: Tue, 14 Dec 2021 00:33:36 +0530 Subject: [PATCH] Passed value to the function rather then hard input --- accounting/gst.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accounting/gst.js b/accounting/gst.js index 2caf3049..12a29e84 100644 --- a/accounting/gst.js +++ b/accounting/gst.js @@ -67,7 +67,7 @@ export async function generateGstr1Json(report, { transferType, toDate }) { return; } - const savePath = await getSavePath(); + const savePath = await getSavePath('gstr-1'); if (!savePath) return; const gstData = { @@ -157,7 +157,7 @@ async function generateB2csData(invoices) { return []; } -async function getSavePath(name = 'gstr1') { +async function getSavePath(name) { const options = { title: _('Select folder'), defaultPath: `${name}.json`,