Passed value to the function rather then hard input

This commit is contained in:
Piyush Singhania
2021-12-21 12:37:25 +05:30
committed by Alan
parent 4efe6552f9
commit a294ca20bc
+2 -2
View File
@@ -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`,