2019-07-30 12:02:49 +00:00
|
|
|
const title = 'GSTR 2';
|
2021-11-04 10:31:26 +00:00
|
|
|
import baseConfig from './BaseViewConfig';
|
2021-12-29 10:44:35 +00:00
|
|
|
import { generateGstr2Csv } from '../../accounting/gst';
|
|
|
|
|
|
|
|
const actions = [
|
|
|
|
{
|
|
|
|
group: 'Export',
|
|
|
|
label: 'CSV',
|
|
|
|
type: 'primary',
|
|
|
|
action: async (report, filters) => {
|
|
|
|
generateGstr2Csv(report, filters);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
2021-11-04 10:31:26 +00:00
|
|
|
|
|
|
|
export default {
|
2019-07-30 12:02:49 +00:00
|
|
|
title: title,
|
|
|
|
method: 'gstr-2',
|
|
|
|
filterFields: baseConfig.filterFields,
|
2021-12-29 10:44:35 +00:00
|
|
|
actions: actions,
|
2021-12-12 10:00:50 +00:00
|
|
|
getColumns: baseConfig.getColumns,
|
2019-07-30 12:02:49 +00:00
|
|
|
};
|