mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
Passed value to the function rather then hard input
This commit is contained in:
parent
4efe6552f9
commit
a294ca20bc
@ -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`,
|
||||
|
Loading…
Reference in New Issue
Block a user