From 9fd833f4162e208d972fbee17932f01dcee3ee4d Mon Sep 17 00:00:00 2001 From: Piyush Singhania Date: Mon, 27 Dec 2021 15:30:01 +0530 Subject: [PATCH] Added sleep back to populate data properly --- accounting/gst.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/accounting/gst.js b/accounting/gst.js index aa82533a..6a5743b7 100644 --- a/accounting/gst.js +++ b/accounting/gst.js @@ -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); }