25 lines
670 B
JavaScript
25 lines
670 B
JavaScript
import ReportingActionTypes from "./reporting.types";
|
|
|
|
export const queryReportingData = ({ startDate, endDate }) => ({
|
|
type: ReportingActionTypes.QUERY_REPORTING_DATA,
|
|
payload: { startDate, endDate },
|
|
});
|
|
|
|
export const setReportingData = (data) => ({
|
|
type: ReportingActionTypes.SET_REPORTING_DATA,
|
|
payload: data,
|
|
});
|
|
|
|
export const calculateScorecard = (data) => ({
|
|
type: ReportingActionTypes.CALCULATE_SCORE_CARD,
|
|
payload: data,
|
|
});
|
|
export const setScoreCard = (data) => ({
|
|
type: ReportingActionTypes.SET_SCORE_CARD,
|
|
payload: data,
|
|
});
|
|
export const setReportingError = (data) => ({
|
|
type: ReportingActionTypes.SET_REPORTING_ERROR,
|
|
payload: data,
|
|
});
|