psi_mmobile

Untitled

Jul 3rd, 2026
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. -- file my-traxxeo/src/app/modules/payroll/pages/lines/grids/payroll-lines.grid.component.ts
  2. -- slagai tochno pod day_journey_role
  3.  
  4. {
  5. enableCellContextMenu: false,
  6. editor: {
  7. type: 'combo',
  8. clearable: true,
  9. items: this.journeyRoles,
  10. autoComplete: 'new-password',
  11. filterOperator: '*'
  12. },
  13. renderer: ({ record, cellElement, value }) => {
  14. if (!record.isLeaf && this.isEditableRecord(record, true)) {
  15. cellElement.classList.add('editableCell');
  16. }
  17. return !record.isLeaf &&
  18. value &&
  19. this.journeyRoles.find((role) => role.value === value)
  20. ? this.journeyRoles.find((role) => role.value === value).text
  21. : '';
  22. },
  23. headerRenderer: (renderData) => {
  24. (
  25. renderData.headerElement.firstElementChild as HTMLElement
  26. ).style.whiteSpace = 'pre-wrap';
  27. return renderData.column.text;
  28. },
  29. excelValue: (record) => {
  30. return this.journeyRoles.find(
  31. (role) => role.value === record.day_journey_role_return
  32. )
  33. ? this.journeyRoles.find(
  34. (role) => role.value === record.day_journey_role_return
  35. ).text
  36. : '';
  37. },
  38. text: 'Journey role return',
  39. field: 'day_journey_role_return',
  40. id: 'columnPayrollLinesJourneyRoleReturn',
  41. groupable: false,
  42. sortable: true
  43. },
  44.  
  45. -- tova se slaga pod r.abestos_vacation_day_qty_bonus = referenceRecord.abestos_vacation_day_qty_bonus;
  46.  
  47. r.day_journey_role_return = referenceRecord.day_journey_role_return;
  48.  
  49. -- scheduler FR
  50. ,
  51. 'Journey role return': 'Rôle pendant le trajet retour'
  52. -- scheduler NL
  53. ,
  54. 'Journey role return': 'Rol tijdens traject opbrengst'
  55.  
  56.  
  57.  
Advertisement
Add Comment
Please, Sign In to add comment