Package updates and removed autosave on job on enter.
This commit is contained in:
@@ -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>,
|
||||
]}
|
||||
|
||||
@@ -142,6 +142,7 @@ export function JobsDetailPage({
|
||||
<FormFieldsChanged form={form} />
|
||||
|
||||
<JobsDetailHeader
|
||||
form={form}
|
||||
job={job}
|
||||
refetch={refetch}
|
||||
handleSubmit={handleSubmit}
|
||||
|
||||
Reference in New Issue
Block a user