BOD-26 Added totals calculation for job reconciliation.
This commit is contained in:
@@ -16,7 +16,8 @@ const INITIAL_STATE = {
|
||||
schedule: { ...baseModal },
|
||||
partsOrder: { ...baseModal },
|
||||
timeTicket: { ...baseModal },
|
||||
printCenter: {...baseModal}
|
||||
printCenter: { ...baseModal },
|
||||
reconciliation: { ...baseModal },
|
||||
};
|
||||
|
||||
const modalsReducer = (state = INITIAL_STATE, action) => {
|
||||
|
||||
@@ -1,41 +1,48 @@
|
||||
import { createSelector } from "reselect";
|
||||
|
||||
const selectModals = state => state.modals;
|
||||
const selectModals = (state) => state.modals;
|
||||
|
||||
export const selectJobLineEditModal = createSelector(
|
||||
[selectModals],
|
||||
modals => modals.jobLineEdit
|
||||
(modals) => modals.jobLineEdit
|
||||
);
|
||||
|
||||
export const selectInvoiceEnterModal = createSelector(
|
||||
[selectModals],
|
||||
modals => modals.invoiceEnter
|
||||
(modals) => modals.invoiceEnter
|
||||
);
|
||||
|
||||
export const selectCourtesyCarReturn = createSelector(
|
||||
[selectModals],
|
||||
modals => modals.courtesyCarReturn
|
||||
(modals) => modals.courtesyCarReturn
|
||||
);
|
||||
|
||||
export const selectNoteUpsert = createSelector(
|
||||
[selectModals],
|
||||
modals => modals.noteUpsert
|
||||
(modals) => modals.noteUpsert
|
||||
);
|
||||
|
||||
export const selectSchedule = createSelector(
|
||||
[selectModals],
|
||||
modals => modals.schedule
|
||||
(modals) => modals.schedule
|
||||
);
|
||||
|
||||
export const selectPartsOrder = createSelector(
|
||||
[selectModals],
|
||||
modals => modals.partsOrder
|
||||
(modals) => modals.partsOrder
|
||||
);
|
||||
|
||||
export const selectTimeTicket = createSelector(
|
||||
[selectModals],
|
||||
modals => modals.timeTicket
|
||||
);export const selectPrintCenter = createSelector(
|
||||
(modals) => modals.timeTicket
|
||||
);
|
||||
|
||||
export const selectPrintCenter = createSelector(
|
||||
[selectModals],
|
||||
modals => modals.printCenter
|
||||
);
|
||||
(modals) => modals.printCenter
|
||||
);
|
||||
|
||||
export const selectReconciliation = createSelector(
|
||||
[selectModals],
|
||||
(modals) => modals.reconciliation
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user