2019-02-18 05:42:04 +00:00
|
|
|
const title = 'Goods and Service Tax';
|
|
|
|
module.exports = {
|
|
|
|
title: title,
|
|
|
|
method: 'gst-taxes',
|
2019-07-19 13:24:31 +00:00
|
|
|
filterFields: [
|
2019-07-22 09:56:30 +00:00
|
|
|
{
|
|
|
|
fieldtype: 'Select',
|
|
|
|
label: 'Report Type',
|
|
|
|
fieldname: 'reportType',
|
|
|
|
options: ['', 'GSTR-1', 'GSTR-2', 'GSTR-3B']
|
|
|
|
},
|
2019-02-18 05:42:04 +00:00
|
|
|
{
|
|
|
|
fieldtype: 'Data',
|
2019-07-19 13:24:31 +00:00
|
|
|
label: 'Transfer Type',
|
|
|
|
fieldname: 'transferType'
|
2019-02-18 05:42:04 +00:00
|
|
|
},
|
|
|
|
{
|
2019-07-19 13:24:31 +00:00
|
|
|
fieldtype: 'Data',
|
|
|
|
label: 'Place',
|
|
|
|
fieldname: 'place'
|
2019-02-18 05:42:04 +00:00
|
|
|
},
|
|
|
|
{
|
2019-07-19 13:24:31 +00:00
|
|
|
fieldtype: 'Date',
|
|
|
|
label: 'From Date',
|
|
|
|
fieldname: 'fromDate'
|
2019-02-18 05:42:04 +00:00
|
|
|
},
|
|
|
|
{
|
2019-07-19 13:24:31 +00:00
|
|
|
fieldtype: 'Date',
|
|
|
|
label: 'To Date',
|
|
|
|
fieldname: 'toDate'
|
2019-02-18 05:42:04 +00:00
|
|
|
}
|
2019-07-19 13:24:31 +00:00
|
|
|
],
|
2019-07-24 09:32:53 +00:00
|
|
|
linkFields: [
|
|
|
|
{
|
|
|
|
label: 'Export',
|
|
|
|
type: 'primary',
|
|
|
|
action: async report => {
|
|
|
|
async function getReportDetails() {
|
|
|
|
let [rows, columns] = await report.getReportData(
|
|
|
|
report.currentFilters
|
|
|
|
);
|
|
|
|
let columnData = columns.map(column => {
|
|
|
|
return {
|
|
|
|
id: column.id,
|
|
|
|
content: column.content,
|
|
|
|
checked: true
|
|
|
|
};
|
|
|
|
});
|
|
|
|
return {
|
|
|
|
title: title,
|
|
|
|
rows: rows,
|
|
|
|
columnData: columnData
|
|
|
|
};
|
|
|
|
}
|
|
|
|
report.$modal.show({
|
|
|
|
modalProps: {
|
|
|
|
title: `Export ${title}`,
|
|
|
|
noFooter: true
|
|
|
|
},
|
|
|
|
component: require('../../src/components/ExportWizard').default,
|
|
|
|
props: await getReportDetails()
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2019-07-19 13:24:31 +00:00
|
|
|
|
|
|
|
getColumns() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
label: 'GSTIN No.',
|
|
|
|
fieldname: 'gstin',
|
|
|
|
fieldtype: 'Data',
|
|
|
|
width: 100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
fieldtype: 'Data',
|
2019-07-22 09:56:30 +00:00
|
|
|
fieldname: 'partyName',
|
|
|
|
label: 'Party',
|
2019-07-19 13:24:31 +00:00
|
|
|
width: 100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Invoice No.',
|
|
|
|
fieldname: 'invNo',
|
|
|
|
fieldtype: 'Data',
|
|
|
|
width: 100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Invoice Value',
|
|
|
|
fieldname: 'invAmt',
|
|
|
|
fieldtype: 'Currency',
|
|
|
|
width: 100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Invoice Date',
|
|
|
|
fieldname: 'invDate',
|
|
|
|
fieldtype: 'Date',
|
|
|
|
width: 100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Place of supply',
|
|
|
|
fieldname: 'place',
|
|
|
|
fieldtype: 'Data',
|
|
|
|
width: 100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Rate',
|
|
|
|
fieldname: 'rate',
|
|
|
|
fieldtype: 'Data',
|
|
|
|
width: 80
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Taxable Amount',
|
|
|
|
fieldname: 'taxAmt',
|
|
|
|
fieldtype: 'Currency',
|
|
|
|
width: 100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Intergrated Tax',
|
|
|
|
fieldname: 'igstAmt',
|
|
|
|
fieldtype: 'Currency',
|
|
|
|
width: 100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Central Tax',
|
|
|
|
fieldname: 'cgstAmt',
|
|
|
|
fieldtype: 'Currency',
|
|
|
|
width: 100
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'State Tax',
|
|
|
|
fieldname: 'sgstAmt',
|
|
|
|
fieldtype: 'Currency',
|
|
|
|
width: 100
|
|
|
|
}
|
2019-02-18 05:42:04 +00:00
|
|
|
];
|
|
|
|
}
|
2019-07-19 13:24:31 +00:00
|
|
|
};
|