BOD-72 Refactored calculations to use Dinero library.

This commit is contained in:
Patrick Fic
2020-04-29 13:25:31 -07:00
parent a9bd0a5ccb
commit 99d3a6a64e
6 changed files with 240 additions and 209 deletions

View File

@@ -1,8 +1,7 @@
import { Divider, Form, Input, InputNumber, Row, Col } from "antd";
import { Col, Divider, Form, Input, InputNumber, Row } from "antd";
import React from "react";
import { useTranslation } from "react-i18next";
import JobTotalsTable from "../job-totals-table/job-totals-table.component";
export default function JobsDetailFinancials({ job }) {
const { t } = useTranslation();
@@ -125,8 +124,9 @@ export default function JobsDetailFinancials({ job }) {
</Form.Item>
</Col>
<Col offset={1} span={15}>
<JobTotalsTable totals={job.job_totals} />
{JSON.stringify(job.cieca_ttl, null, "\t")}
<JobTotalsTable job={job} />
<p>Mitchell: {JSON.stringify(job.cieca_ttl, null, "\t")}</p>
<p>Mine:{JSON.stringify(job.job_totals, null, "\t")}</p>
</Col>
</Row>
);