Added statistics and finished calculations for job costing. BOD-192

This commit is contained in:
Patrick Fic
2020-07-21 14:56:36 -07:00
parent 068e1e8057
commit 0ef4d77275
9 changed files with 358 additions and 157 deletions

View File

@@ -25,7 +25,7 @@ export function JobCostingModalContainer({
}) {
const { t } = useTranslation();
const { visible, context, actions } = jobCostingModal;
const { visible, context } = jobCostingModal;
const { jobId } = context;
const { loading, error, data } = useQuery(QUERY_JOB_COSTING_DETAILS, {
@@ -38,10 +38,11 @@ export function JobCostingModalContainer({
visible={visible}
title={t("jobs.labels.jobcosting")}
onCancel={() => toggleModalVisible()}
width='90%'
width="90%"
destroyOnClose
forceRender>
{error ? <AlertComponent message={error.message} type='error' /> : null}
forceRender
>
{error ? <AlertComponent message={error.message} type="error" /> : null}
{loading ? (
<LoadingSpinner loading={loading} />
) : (