mirror of
https://github.com/frappe/books.git
synced 2024-11-13 00:46:28 +00:00
23 lines
544 B
JavaScript
23 lines
544 B
JavaScript
const title = 'GSTR 1';
|
|
import baseConfig from './BaseViewConfig';
|
|
import { DateTime } from 'luxon';
|
|
|
|
const filterFields = baseConfig.filterFields;
|
|
filterFields.forEach((field) => {
|
|
if (field.fieldname === 'toDate') {
|
|
field.default = DateTime.local().toISODate();
|
|
}
|
|
else if(field.fieldname === 'fromDate') {
|
|
field.default = DateTime.local().minus({months: 3}).toISODate();
|
|
}
|
|
});
|
|
|
|
|
|
export default {
|
|
title: title,
|
|
method: 'gstr-1',
|
|
filterFields,
|
|
linkFields: baseConfig.linkFields,
|
|
getColumns: baseConfig.getColumns,
|
|
};
|