-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CM-489: improve payroll task approve display (#21)
* CM-495: improve payroll task approve display * CM-489: added adjustments in payroll accept/reject --------- Co-authored-by: Jan <[email protected]>
- Loading branch information
1 parent
845daec
commit f8c81ea
Showing
4 changed files
with
17 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,13 @@ | ||
import React from 'react'; | ||
import { FormattedMessage } from '@openimis/fe-core'; | ||
import PayrollPage from '../../pages/payroll/PayrollPage'; | ||
import { EMPTY_STRING } from '../../constants'; | ||
|
||
const PayrollTaskTableHeaders = () => [ | ||
<FormattedMessage module="payroll" id="payroll.name" />, | ||
<FormattedMessage module="payroll" id="payroll.benefitPlan" />, | ||
<FormattedMessage module="payroll" id="payroll.status" />, | ||
<FormattedMessage module="payroll" id="payroll.dateValidFrom" />, | ||
<FormattedMessage module="payroll" id="payroll.dateValidTo" />, | ||
<FormattedMessage module="payroll" id="payroll.paymentMethod" />, | ||
EMPTY_STRING, | ||
]; | ||
|
||
const PayrollTaskItemFormatters = () => [ | ||
(payroll) => payroll?.name, | ||
(payroll) => payroll?.benefitPlan, | ||
(payroll) => payroll?.status, | ||
(payroll) => payroll?.date_valid_from, | ||
(payroll) => payroll?.date_valid_to, | ||
(payroll) => payroll?.paymentMethod, | ||
(payroll) => <PayrollPage taskPayrollUuid={payroll?.id} />, | ||
]; | ||
|
||
export { PayrollTaskTableHeaders, PayrollTaskItemFormatters }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters