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

Merge pull request #29 from piyushsinghania/feature/gstr1-b2c

Added sleep back to populate data properly
This commit is contained in:
Ankit Singhaniya 2021-12-28 11:43:59 +05:30 committed by GitHub
commit 3f157f2d6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
import { showMessageDialog } from '@/utils';
import frappe from 'frappejs';
import { _ } from 'frappejs/utils';
import { sleep, _ } from 'frappejs/utils';
import { DateTime } from 'luxon';
import { saveExportData } from '../reports/commonExporter';
import { getSavePath } from '../src/utils';
@ -120,6 +120,7 @@ export async function generateGstr1Json(getReportData) {
gstData.b2cs = await generateB2csData(rows);
}
await sleep(1);
const jsonData = JSON.stringify(gstData);
await saveExportData(jsonData, filePath);
}