Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions client/src/entities/teacher-salary-report.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,16 @@ const Datagrid = ({ isAdmin, children, ...props }) => {
);
};

const sortOptions = [
{ field: 'klass.order', label: 'סדר כיתה' },
{ field: 'klass.klassType.name', label: 'שיוך כיתה' },
];

const entity = {
Datagrid,
filters,
filterDefaultValues,
sortOptions,
};

export default getResourceComponents(entity);
1 change: 1 addition & 0 deletions client/src/roadmapFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ export default [
{ html: 'עריכה מרוכזת בדיווחי נוכחות, ציונים, חיסורים מאושרים, תלמידות, שיעורים ומורות: מסמנים שורות ומעדכנים שדות נבחרים בכולן יחד (שדה ריק לא משתנה)', status: 'בוצע', statusColor: 'success' },
{ html: 'דפי העזרה במערכת עודכנו ונכתבו מחדש, וכל הדפים מוצגים ברשימת העזרה', status: 'בוצע', statusColor: 'success' },
{ html: 'אישור חיסורים לפי תלמידה וטווח תאריכים: טופס "אישור ימים מלאים" והעלאת קובץ לפי ת.ז. ותאריך', status: 'בוצע', statusColor: 'success' },
{ html: 'רשימות: כפתור "מיון" למיון מתקדם לפי כמה עמודות (למשל סדר כיתה ואז שם מורה), כולל בייצוא לאקסל. בדוח שכר למורה אפשר למיין גם לפי סדר כיתה ושיוך כיתה', status: 'בוצע', statusColor: 'success' },
].reverse();
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ createEntityConfigTests('TeacherSalaryReportConfig', config, {
teacher: {},
lesson: {},
klass: {},
'klass.klassType': {},
reportMonth: {},
},
expectedExportJoins: {
teacher: { eager: true },
klass: { eager: true },
'klass.klassType': { eager: false },
lesson: { eager: true },
reportMonth: { eager: true },
},
Expand Down
2 changes: 2 additions & 0 deletions server/src/entity-modules/teacher-salary-report.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function getConfig(): BaseEntityModuleOptions {
teacher: {},
lesson: {},
klass: {},
'klass.klassType': {},
reportMonth: {},
},
},
Expand All @@ -19,6 +20,7 @@ function getConfig(): BaseEntityModuleOptions {
req.options.query.join = {
teacher: { eager: true },
klass: { eager: true },
'klass.klassType': { eager: false },
lesson: { eager: true },
reportMonth: { eager: true },
};
Expand Down
Loading