IO-1602 Add customer portions to CDK posting screen.
This commit is contained in:
@@ -80,7 +80,8 @@ export function DmsPostForm({ bodyshop, socket, job, logsRef }) {
|
|||||||
initialValues={{
|
initialValues={{
|
||||||
story: t("jobs.labels.dms.defaultstory", {
|
story: t("jobs.labels.dms.defaultstory", {
|
||||||
ro_number: job.ro_number,
|
ro_number: job.ro_number,
|
||||||
area_of_damage: job.area_of_damage && job.area_of_damage.impact1,
|
area_of_damage:
|
||||||
|
(job.area_of_damage && job.area_of_damage.impact1) || "UNKNOWN",
|
||||||
}).substr(0, 239),
|
}).substr(0, 239),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -174,6 +175,22 @@ export function DmsPostForm({ bodyshop, socket, job, logsRef }) {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
<Divider />
|
<Divider />
|
||||||
|
<Space size="large" wrap align="center">
|
||||||
|
<Statistic
|
||||||
|
title={t("jobs.fields.ded_amt")}
|
||||||
|
value={Dinero(
|
||||||
|
job.job_totals.totals.custPayable.deductible
|
||||||
|
).toFormat()}
|
||||||
|
/>
|
||||||
|
<Statistic
|
||||||
|
title={t("jobs.labels.total_cust_payable")}
|
||||||
|
value={Dinero(job.job_totals.totals.custPayable.total).toFormat()}
|
||||||
|
/>
|
||||||
|
<Statistic
|
||||||
|
title={t("jobs.labels.net_repairs")}
|
||||||
|
value={Dinero(job.job_totals.totals.net_repairs).toFormat()}
|
||||||
|
/>
|
||||||
|
</Space>
|
||||||
<Form.List name={["payers"]}>
|
<Form.List name={["payers"]}>
|
||||||
{(fields, { add, remove }) => {
|
{(fields, { add, remove }) => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -2032,6 +2032,8 @@ export const QUERY_JOB_EXPORT_DMS = gql`
|
|||||||
po_number
|
po_number
|
||||||
clm_no
|
clm_no
|
||||||
job_totals
|
job_totals
|
||||||
|
ded_amt
|
||||||
|
ded_status
|
||||||
ownr_fn
|
ownr_fn
|
||||||
ownr_ln
|
ownr_ln
|
||||||
ownr_co_nm
|
ownr_co_nm
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import queryString from "query-string";
|
|||||||
import React, { useEffect, useRef, useState } from "react";
|
import React, { useEffect, useRef, useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { useHistory, useLocation } from "react-router-dom";
|
import { useHistory, useLocation, Link } from "react-router-dom";
|
||||||
import { createStructuredSelector } from "reselect";
|
import { createStructuredSelector } from "reselect";
|
||||||
import SocketIO from "socket.io-client";
|
import SocketIO from "socket.io-client";
|
||||||
import AlertComponent from "../../components/alert/alert.component";
|
import AlertComponent from "../../components/alert/alert.component";
|
||||||
@@ -138,13 +138,20 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader }) {
|
|||||||
<Row gutter={[16, 16]}>
|
<Row gutter={[16, 16]}>
|
||||||
<Col md={24} lg={10}>
|
<Col md={24} lg={10}>
|
||||||
<DmsAllocationsSummary
|
<DmsAllocationsSummary
|
||||||
title={`${data && data.jobs_by_pk && data.jobs_by_pk.ro_number} | ${
|
title={
|
||||||
data.jobs_by_pk.ownr_fn || ""
|
<span>
|
||||||
} ${data.jobs_by_pk.ownr_ln || ""} ${
|
<Link to={`/manage/jobs/${data && data.jobs_by_pk.id}`}>{`${
|
||||||
data.jobs_by_pk.ownr_co_nm || ""
|
data && data.jobs_by_pk && data.jobs_by_pk.ro_number
|
||||||
} | ${data.jobs_by_pk.v_model_yr || ""} ${
|
}`}</Link>
|
||||||
data.jobs_by_pk.v_make_desc || ""
|
{` | ${data.jobs_by_pk.ownr_fn || ""} ${
|
||||||
} ${data.jobs_by_pk.v_model_desc || ""}`}
|
data.jobs_by_pk.ownr_ln || ""
|
||||||
|
} ${data.jobs_by_pk.ownr_co_nm || ""} | ${
|
||||||
|
data.jobs_by_pk.v_model_yr || ""
|
||||||
|
} ${data.jobs_by_pk.v_make_desc || ""} ${
|
||||||
|
data.jobs_by_pk.v_model_desc || ""
|
||||||
|
}`}
|
||||||
|
</span>
|
||||||
|
}
|
||||||
socket={socket}
|
socket={socket}
|
||||||
jobId={jobId}
|
jobId={jobId}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user