From 8e4cc5756c072ecf15fac5d8dbb51b65c82b20aa Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 28 Oct 2020 06:32:37 -0700 Subject: [PATCH] Updated format on reporting screen. RPS-26 --- .../reporting-jobs-list.molecule.jsx | 21 ++++++ .../reporting-totals-stats.molecule.jsx | 73 +++++++++++-------- 2 files changed, 62 insertions(+), 32 deletions(-) diff --git a/src/components/molecules/reporting-jobs-list/reporting-jobs-list.molecule.jsx b/src/components/molecules/reporting-jobs-list/reporting-jobs-list.molecule.jsx index db64077..439c5f5 100644 --- a/src/components/molecules/reporting-jobs-list/reporting-jobs-list.molecule.jsx +++ b/src/components/molecules/reporting-jobs-list/reporting-jobs-list.molecule.jsx @@ -9,6 +9,7 @@ import { setSelectedJobId } from "../../../redux/application/application.actions import { selectReportData, selectReportLoading, + selectScorecard, } from "../../../redux/reporting/reporting.selectors"; const { ipcRenderer } = window; @@ -16,12 +17,14 @@ const { ipcRenderer } = window; const mapStateToProps = createStructuredSelector({ reportingLoading: selectReportLoading, reportData: selectReportData, + scoreCard: selectScorecard, }); const mapDispatchToProps = (dispatch) => ({ setSelectedJobId: (id) => dispatch(setSelectedJobId(id)), }); export function ReportingJobsListMolecule({ + scoreCard, reportingLoading, reportData, setSelectedJobId, @@ -147,6 +150,24 @@ export function ReportingJobsListMolecule({ scroll={{ x: true, }} + summary={() => ( + + + + + + + + {scoreCard && scoreCard.allJobsSumDbPrice.toFormat()} + + + {" "} + {scoreCard && scoreCard.allJobsSumActPrice.toFormat()} + + + + + )} /> ); diff --git a/src/components/molecules/reporting-totals-stats/reporting-totals-stats.molecule.jsx b/src/components/molecules/reporting-totals-stats/reporting-totals-stats.molecule.jsx index 98e09f2..066fe24 100644 --- a/src/components/molecules/reporting-totals-stats/reporting-totals-stats.molecule.jsx +++ b/src/components/molecules/reporting-totals-stats/reporting-totals-stats.molecule.jsx @@ -35,38 +35,47 @@ export function ReportingTotalsStatsMolecule({ reportingLoading, scoreCard }) { marginBottom: "1rem", }} > - - - - - +
+ + +
+
+ + + +
); }