2021-11-04 10:31:26 +00:00
|
|
|
import ExportWizard from '../../src/components/ExportWizard';
|
2021-12-10 16:26:02 +00:00
|
|
|
import { generateGstr1Json } from '../../accounting/gst';
|
2021-11-04 10:31:26 +00:00
|
|
|
|
|
|
|
export default {
|
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',
|
2021-12-16 11:15:31 +00:00
|
|
|
placeholder: 'Transfer Type',
|
2019-07-25 09:50:48 +00:00
|
|
|
fieldname: 'transferType',
|
|
|
|
options: [
|
|
|
|
'B2B',
|
|
|
|
'B2C-Large',
|
|
|
|
'B2C-Small',
|
2021-12-16 11:15:31 +00:00
|
|
|
'Nil Rated, Exempted and Non GST supplies',
|
2019-08-14 07:43:49 +00:00
|
|
|
],
|
2021-12-10 16:26:02 +00:00
|
|
|
default: 'B2B',
|
2021-12-16 11:15:31 +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',
|
2021-12-16 11:15: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',
|
2021-12-16 11:15: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',
|
2021-12-16 11:15:31 +00:00
|
|
|
fieldname: 'toDate',
|
|
|
|
},
|
2019-07-19 13:24:31 +00:00
|
|
|
],
|
2019-07-24 09:32:53 +00:00
|
|
|
linkFields: [
|
|
|
|
{
|
2021-12-10 16:26:02 +00:00
|
|
|
label: 'Export as JSON',
|
2019-07-24 09:32:53 +00:00
|
|
|
type: 'primary',
|
2021-12-10 16:52:31 +00:00
|
|
|
action: async (report, filters) => {
|
|
|
|
generateGstr1Json(report, filters);
|
2021-12-16 11:15:31 +00:00
|
|
|
},
|
|
|
|
},
|
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',
|
2021-12-02 08:34:26 +00:00
|
|
|
width: 1.5,
|
2019-07-19 13:24:31 +00:00
|
|
|
},
|
|
|
|
{
|
2021-12-02 08:34:26 +00:00
|
|
|
label: 'Party',
|
2019-07-19 13:24:31 +00:00
|
|
|
fieldtype: 'Data',
|
2019-07-22 09:56:30 +00:00
|
|
|
fieldname: 'partyName',
|
2021-12-02 08:34:26 +00:00
|
|
|
width: 1.5,
|
2019-07-19 13:24:31 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Invoice No.',
|
|
|
|
fieldname: 'invNo',
|
|
|
|
fieldtype: 'Data',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Invoice Value',
|
|
|
|
fieldname: 'invAmt',
|
|
|
|
fieldtype: 'Currency',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Invoice Date',
|
|
|
|
fieldname: 'invDate',
|
|
|
|
fieldtype: 'Date',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Place of supply',
|
|
|
|
fieldname: 'place',
|
|
|
|
fieldtype: 'Data',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Rate',
|
|
|
|
fieldname: 'rate',
|
|
|
|
fieldtype: 'Data',
|
2021-12-02 08:34:26 +00:00
|
|
|
width: 0.5,
|
2019-07-19 13:24:31 +00:00
|
|
|
},
|
|
|
|
{
|
2019-07-25 09:50:48 +00:00
|
|
|
label: 'Taxable Value',
|
|
|
|
fieldname: 'taxVal',
|
2019-07-19 13:24:31 +00:00
|
|
|
fieldtype: 'Currency',
|
|
|
|
},
|
2019-07-25 09:50:48 +00:00
|
|
|
{
|
|
|
|
label: 'Reverse Chrg.',
|
|
|
|
fieldname: 'reverseCharge',
|
|
|
|
fieldtype: 'Data',
|
|
|
|
},
|
2019-07-19 13:24:31 +00:00
|
|
|
{
|
|
|
|
label: 'Intergrated Tax',
|
|
|
|
fieldname: 'igstAmt',
|
|
|
|
fieldtype: 'Currency',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Central Tax',
|
|
|
|
fieldname: 'cgstAmt',
|
|
|
|
fieldtype: 'Currency',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'State Tax',
|
|
|
|
fieldname: 'sgstAmt',
|
|
|
|
fieldtype: 'Currency',
|
2021-12-16 11:15:31 +00:00
|
|
|
},
|
2019-02-18 05:42:04 +00:00
|
|
|
];
|
2021-12-16 11:15:31 +00:00
|
|
|
},
|
2019-07-19 13:24:31 +00:00
|
|
|
};
|