mirror of
https://github.com/frappe/books.git
synced 2025-02-04 04:58:30 +00:00
Added sleep back to populate data properly
This commit is contained in:
parent
80606b2cca
commit
1b942cdedf
@ -1,6 +1,6 @@
|
|||||||
import { showMessageDialog } from '@/utils';
|
import { showMessageDialog } from '@/utils';
|
||||||
import frappe from 'frappejs';
|
import frappe from 'frappejs';
|
||||||
import { _ } from 'frappejs/utils';
|
import { sleep, _ } from 'frappejs/utils';
|
||||||
import { DateTime } from 'luxon';
|
import { DateTime } from 'luxon';
|
||||||
import { saveExportData } from '../reports/commonExporter';
|
import { saveExportData } from '../reports/commonExporter';
|
||||||
import { getSavePath } from '../src/utils';
|
import { getSavePath } from '../src/utils';
|
||||||
@ -120,6 +120,7 @@ export async function generateGstr1Json(getReportData) {
|
|||||||
gstData.b2cs = await generateB2csData(rows);
|
gstData.b2cs = await generateB2csData(rows);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await sleep(1);
|
||||||
const jsonData = JSON.stringify(gstData);
|
const jsonData = JSON.stringify(gstData);
|
||||||
await saveExportData(jsonData, filePath);
|
await saveExportData(jsonData, filePath);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user