2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

Passed value to the function rather then hard input

This commit is contained in:
Piyush Singhania 2021-12-14 00:33:36 +05:30 committed by Alan
parent 4efe6552f9
commit a294ca20bc

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`,