IO-981 Remove job detail back arrow.

This commit is contained in:
Patrick Fic
2021-05-06 14:13:13 -07:00
parent f488a95a8f
commit 059ca45a3a
2 changed files with 74 additions and 72 deletions

View File

@@ -219,32 +219,7 @@ export function BillFormComponent({
>
<CurrencyInput min={0} />
</Form.Item>
</LayoutFormRow>
<Divider orientation="left">{t("bills.labels.bill_lines")}</Divider>
<BillFormLines
lineData={lineData}
discount={discount}
form={form}
responsibilityCenters={responsibilityCenters}
disabled={disabled}
/>
<Form.Item
name="upload"
label="Upload"
style={{ display: billEdit ? "none" : null }}
valuePropName="fileList"
getValueFromEvent={(e) => {
if (Array.isArray(e)) {
return e;
}
return e && e.fileList;
}}
>
<Upload name="logo" beforeUpload={() => false} listType="picture">
<Button>Click to upload</Button>
</Upload>
</Form.Item>
<Form.Item shouldUpdate>
<Form.Item shouldUpdate grow>
{() => {
const values = form.getFieldsValue([
"billlines",
@@ -263,7 +238,7 @@ export function BillFormComponent({
if (!!totals)
return (
<div>
<Space split={<Divider type="vertical" />}>
<Space split={<Divider type="vertical" />} wrap>
<Statistic
title={t("bills.labels.subtotal")}
value={totals.subtotal.toFormat()}
@@ -298,7 +273,9 @@ export function BillFormComponent({
title={t("bills.labels.discrepancy")}
valueStyle={{
color:
totals.discrepancy.getAmount() === 0 ? "green" : "red",
totals.discrepancy.getAmount() === 0
? "green"
: "red",
}}
value={totals.discrepancy.toFormat()}
precision={2}
@@ -315,6 +292,31 @@ export function BillFormComponent({
return null;
}}
</Form.Item>
</LayoutFormRow>
<Divider orientation="left">{t("bills.labels.bill_lines")}</Divider>
<BillFormLines
lineData={lineData}
discount={discount}
form={form}
responsibilityCenters={responsibilityCenters}
disabled={disabled}
/>
<Form.Item
name="upload"
label="Upload"
style={{ display: billEdit ? "none" : null }}
valuePropName="fileList"
getValueFromEvent={(e) => {
if (Array.isArray(e)) {
return e;
}
return e && e.fileList;
}}
>
<Upload name="logo" beforeUpload={() => false} listType="picture">
<Button>Click to upload</Button>
</Upload>
</Form.Item>
</div>
);
}

View File

@@ -159,7 +159,7 @@ export function JobsDetailPage({
initialValues={transormJobToForm(job)}
>
<PageHeader
onBack={() => window.history.back()}
// onBack={() => window.history.back()}
title={job.ro_number || t("general.labels.na")}
extra={menuExtra}
/>