2019-02-18 05:42:04 +00:00
|
|
|
module.exports = {
|
2019-07-19 13:24:31 +00:00
|
|
|
filterFields: [
|
2019-02-18 05:42:04 +00:00
|
|
|
{
|
2019-07-25 09:50:48 +00:00
|
|
|
fieldtype: 'Select',
|
2019-07-19 13:24:31 +00:00
|
|
|
label: 'Transfer Type',
|
2019-07-25 09:50:48 +00:00
|
|
|
fieldname: 'transferType',
|
|
|
|
options: [
|
|
|
|
'',
|
|
|
|
'B2B',
|
|
|
|
'B2C-Large',
|
|
|
|
'B2C-Small',
|
|
|
|
'Nil Rated, Exempted and Non GST supplies'
|
2019-08-14 07:43:49 +00:00
|
|
|
],
|
|
|
|
size: 'small'
|
2019-02-18 05:42:04 +00:00
|
|
|
},
|
|
|
|
{
|
2019-07-19 13:24:31 +00:00
|
|
|
fieldtype: 'Data',
|
|
|
|
label: 'Place',
|
2019-08-14 07:43:49 +00:00
|
|
|
size: 'small',
|
|
|
|
placeholder: 'Place',
|
2019-07-19 13:24:31 +00:00
|
|
|
fieldname: 'place'
|
2019-02-18 05:42:04 +00:00
|
|
|
},
|
|
|
|
{
|
2019-07-19 13:24:31 +00:00
|
|
|
fieldtype: 'Date',
|
|
|
|
label: 'From Date',
|
2019-08-14 07:43:49 +00:00
|
|
|
size: 'small',
|
|
|
|
placeholder: 'From Date',
|
2019-07-19 13:24:31 +00:00
|
|
|
fieldname: 'fromDate'
|
2019-02-18 05:42:04 +00:00
|
|
|
},
|
|
|
|
{
|
2019-07-19 13:24:31 +00:00
|
|
|
fieldtype: 'Date',
|
|
|
|
label: 'To Date',
|
2019-08-14 07:43:49 +00:00
|
|
|
size: 'small',
|
|
|
|
placeholder: 'To Date',
|
2019-07-19 13:24:31 +00:00
|
|
|
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-08-14 07:43:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Clear Filters',
|
|
|
|
type: 'secondary',
|
|
|
|
action: async report => {
|
|
|
|
await report.getReportData({});
|
|
|
|
report.usedToReRender += 1;
|
|
|
|
}
|
2019-07-24 09:32:53 +00:00
|
|
|
}
|
|
|
|
],
|
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
|
|
|
|
},
|
|
|
|
{
|
2019-07-25 09:50:48 +00:00
|
|
|
label: 'Taxable Value',
|
|
|
|
fieldname: 'taxVal',
|
2019-07-19 13:24:31 +00:00
|
|
|
fieldtype: 'Currency',
|
|
|
|
width: 100
|
|
|
|
},
|
2019-07-25 09:50:48 +00:00
|
|
|
{
|
|
|
|
label: 'Reverse Chrg.',
|
|
|
|
fieldname: 'reverseCharge',
|
|
|
|
fieldtype: 'Data',
|
|
|
|
width: 80
|
|
|
|
},
|
2019-07-19 13:24:31 +00:00
|
|
|
{
|
|
|
|
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
|
|
|
};
|