2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/reports/GoodsAndServiceTax/GSTR2View.js

23 lines
458 B
JavaScript

const title = 'GSTR 2';
import baseConfig from './BaseViewConfig';
import { generateGstr2Csv } from '../../accounting/gst';
const actions = [
{
group: 'Export',
label: 'CSV',
type: 'primary',
action: async (report, filters) => {
generateGstr2Csv(report, filters);
},
},
]
export default {
title: title,
method: 'gstr-2',
filterFields: baseConfig.filterFields,
actions: actions,
getColumns: baseConfig.getColumns,
};