2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 19:39:07 +00:00

Renamed gstr-1 functions from get to generate

This commit is contained in:
Piyush Singhania 2021-12-13 14:44:29 +05:30 committed by Alan
parent 94c350195c
commit b44b651695

View File

@ -82,11 +82,11 @@ export async function generateGstr1Json(report, { transferType, toDate }) {
// based condition we need to triggered different methods // based condition we need to triggered different methods
if (transferType === 'B2B') { if (transferType === 'B2B') {
gstData.b2b = await getB2bData(report.rows); gstData.b2b = await generateB2bData(report.rows);
} else if (transferType === 'B2CL') { } else if (transferType === 'B2CL') {
gstData.b2cl = await getB2clData(report.rows); gstData.b2cl = await generateB2clData(report.rows);
} else if (transferType === 'B2CS') { } else if (transferType === 'B2CS') {
gstData.b2cs = await getB2csData(report.rows); gstData.b2cs = await generateB2csData(report.rows);
} }
await sleep(1); await sleep(1);
@ -94,7 +94,7 @@ export async function generateGstr1Json(report, { transferType, toDate }) {
makeJSON(jsonData, savePath); makeJSON(jsonData, savePath);
} }
async function getB2bData(invoices) { async function generateB2bData(invoices) {
const b2b = []; const b2b = [];
invoices.forEach(async (row) => { invoices.forEach(async (row) => {
@ -149,11 +149,11 @@ async function getB2bData(invoices) {
return b2b; return b2b;
} }
async function getB2clData(invoices) { async function generateB2clData(invoices) {
return []; return [];
} }
async function getB2csData(invoices) { async function generateB2csData(invoices) {
return []; return [];
} }