diff --git a/client/shared b/client/shared index aafc2ed5..b95a3326 160000 --- a/client/shared +++ b/client/shared @@ -1 +1 @@ -Subproject commit aafc2ed5a0d6fbcbc9ea692298bf7798fecc4345 +Subproject commit b95a33269ff309e9c530d1d43b23377268b0a0c7 diff --git a/client/src/entities/teacher-salary-report.jsx b/client/src/entities/teacher-salary-report.jsx index 9eb90629..f0539a07 100644 --- a/client/src/entities/teacher-salary-report.jsx +++ b/client/src/entities/teacher-salary-report.jsx @@ -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); diff --git a/client/src/roadmapFeatures.js b/client/src/roadmapFeatures.js index 55a9e8ea..b706e18d 100644 --- a/client/src/roadmapFeatures.js +++ b/client/src/roadmapFeatures.js @@ -41,4 +41,5 @@ export default [ { html: 'עריכה מרוכזת בדיווחי נוכחות, ציונים, חיסורים מאושרים, תלמידות, שיעורים ומורות: מסמנים שורות ומעדכנים שדות נבחרים בכולן יחד (שדה ריק לא משתנה)', status: 'בוצע', statusColor: 'success' }, { html: 'דפי העזרה במערכת עודכנו ונכתבו מחדש, וכל הדפים מוצגים ברשימת העזרה', status: 'בוצע', statusColor: 'success' }, { html: 'אישור חיסורים לפי תלמידה וטווח תאריכים: טופס "אישור ימים מלאים" והעלאת קובץ לפי ת.ז. ותאריך', status: 'בוצע', statusColor: 'success' }, + { html: 'רשימות: כפתור "מיון" למיון מתקדם לפי כמה עמודות (למשל סדר כיתה ואז שם מורה), כולל בייצוא לאקסל. בדוח שכר למורה אפשר למיין גם לפי סדר כיתה ושיוך כיתה', status: 'בוצע', statusColor: 'success' }, ].reverse(); diff --git a/server/src/entity-modules/__tests__/teacher-salary-report.config.spec.ts b/server/src/entity-modules/__tests__/teacher-salary-report.config.spec.ts index 901c43bb..5545ae89 100644 --- a/server/src/entity-modules/__tests__/teacher-salary-report.config.spec.ts +++ b/server/src/entity-modules/__tests__/teacher-salary-report.config.spec.ts @@ -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 }, }, diff --git a/server/src/entity-modules/teacher-salary-report.config.ts b/server/src/entity-modules/teacher-salary-report.config.ts index c46a6143..5c3d1627 100644 --- a/server/src/entity-modules/teacher-salary-report.config.ts +++ b/server/src/entity-modules/teacher-salary-report.config.ts @@ -11,6 +11,7 @@ function getConfig(): BaseEntityModuleOptions { teacher: {}, lesson: {}, klass: {}, + 'klass.klassType': {}, reportMonth: {}, }, }, @@ -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 }, };