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

Removed extra indentation layer

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

View File

@ -62,8 +62,11 @@ const IGST = {
export async function generateGstr1Json(report, { transferType, toDate }) {
const printSettings = await frappe.getSingle('PrintSettings');
if (!printSettings.gstin) promptWhenGstUnavailable();
else {
if (!printSettings.gstin) {
promptWhenGstUnavailable();
return;
}
const savePath = await getSavePath();
if (!savePath) return;
@ -90,7 +93,6 @@ export async function generateGstr1Json(report, { transferType, toDate }) {
const jsonData = JSON.stringify(gstData);
makeJSON(jsonData, savePath);
}
}
async function getB2bData(invoices) {
const b2b = [];