Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- file my-traxxeo/src/app/modules/payroll/pages/lines/grids/payroll-lines.grid.component.ts
- -- slagai tochno pod day_journey_role
- {
- enableCellContextMenu: false,
- editor: {
- type: 'combo',
- clearable: true,
- items: this.journeyRoles,
- autoComplete: 'new-password',
- filterOperator: '*'
- },
- renderer: ({ record, cellElement, value }) => {
- if (!record.isLeaf && this.isEditableRecord(record, true)) {
- cellElement.classList.add('editableCell');
- }
- return !record.isLeaf &&
- value &&
- this.journeyRoles.find((role) => role.value === value)
- ? this.journeyRoles.find((role) => role.value === value).text
- : '';
- },
- headerRenderer: (renderData) => {
- (
- renderData.headerElement.firstElementChild as HTMLElement
- ).style.whiteSpace = 'pre-wrap';
- return renderData.column.text;
- },
- excelValue: (record) => {
- return this.journeyRoles.find(
- (role) => role.value === record.day_journey_role_return
- )
- ? this.journeyRoles.find(
- (role) => role.value === record.day_journey_role_return
- ).text
- : '';
- },
- text: 'Journey role return',
- field: 'day_journey_role_return',
- id: 'columnPayrollLinesJourneyRoleReturn',
- groupable: false,
- sortable: true
- },
- -- tova se slaga pod r.abestos_vacation_day_qty_bonus = referenceRecord.abestos_vacation_day_qty_bonus;
- r.day_journey_role_return = referenceRecord.day_journey_role_return;
- -- scheduler FR
- ,
- 'Journey role return': 'Rôle pendant le trajet retour'
- -- scheduler NL
- ,
- 'Journey role return': 'Rol tijdens traject opbrengst'
Advertisement
Add Comment
Please, Sign In to add comment