Package updates and removed autosave on job on enter.

This commit is contained in:
Patrick Fic
2020-08-20 10:45:54 -07:00
parent df0f98f377
commit af0b08e7f1
6 changed files with 428 additions and 434 deletions

View File

@@ -25,12 +25,12 @@ const mapDispatchToProps = (dispatch) => ({
export function JobsDetailHeader({
job,
refetch,
setPrintCenterContext,
bodyshop,
updateJobStatus,
setScheduleContext,
form,
}) {
const { t } = useTranslation();
@@ -80,8 +80,7 @@ export function JobsDetailHeader({
<Button
type="primary"
className="imex-flex-row__margin"
key="submit"
htmlType="submit"
onClick={() => form.submit()}
>
{t("general.actions.save")}
</Button>
@@ -108,12 +107,7 @@ export function JobsDetailHeader({
</Tag>,
<Tag title={t("jobs.fields.repairtotal")} key="total" color="green">
<CurrencyFormatter>{job.clm_total}</CurrencyFormatter>
</Tag>,
<Tag
title={t("jobs.fields.customerowing")}
key="custowing"
color="green"
>
<span style={{ margin: "0rem .5rem" }}>/</span>
<CurrencyFormatter>{job.owner_owing}</CurrencyFormatter>
</Tag>,
]}

View File

@@ -142,6 +142,7 @@ export function JobsDetailPage({
<FormFieldsChanged form={form} />
<JobsDetailHeader
form={form}
job={job}
refetch={refetch}
handleSubmit={handleSubmit}