react loan module and salary module

This commit is contained in:
roshelrao
2021-06-22 16:06:53 +05:30
parent d69d573e65
commit 7dcc5fb58e
15 changed files with 1132 additions and 471 deletions

View File

@@ -2,9 +2,18 @@
Copyright (c) 2018 [Glacies UG, Berlin, Germany] (http://glacies.de)
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
*/
import AdapterBase from '../../../api/AdapterBase';
//import AdapterBase from '../../../api/AdapterBase';
import ReactModalAdapterBase from '../../../api/ReactModalAdapterBase';
class EmployeeSalaryAdapter extends ReactModalAdapterBase {
constructor(endPoint, tab, filter, orderBy) {
super(endPoint, tab, filter, orderBy);
this.fieldNameMap = {};
this.hiddenFields = {};
this.tableFields = {};
this.formOnlyFields = {};
}
class EmployeeSalaryAdapter extends AdapterBase {
getDataMapping() {
return [
'id',
@@ -23,6 +32,27 @@ class EmployeeSalaryAdapter extends AdapterBase {
];
}
getTableColumns() {
return [
{
title: 'Salary Component',
dataIndex: 'component',
sorter: true,
},
{
title: 'Amount',
dataIndex: 'amount',
sorter: true,
},
{
title: 'Details',
dataIndex: 'details',
sorter: true,
}
];
}
getFormFields() {
return [
['id', { label: 'ID', type: 'hidden' }],