IO-981 Remove job detail back arrow.
This commit is contained in:
@@ -219,32 +219,7 @@ export function BillFormComponent({
|
|||||||
>
|
>
|
||||||
<CurrencyInput min={0} />
|
<CurrencyInput min={0} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
<Form.Item shouldUpdate grow>
|
||||||
<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>
|
|
||||||
{() => {
|
{() => {
|
||||||
const values = form.getFieldsValue([
|
const values = form.getFieldsValue([
|
||||||
"billlines",
|
"billlines",
|
||||||
@@ -263,7 +238,7 @@ export function BillFormComponent({
|
|||||||
if (!!totals)
|
if (!!totals)
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Space split={<Divider type="vertical" />}>
|
<Space split={<Divider type="vertical" />} wrap>
|
||||||
<Statistic
|
<Statistic
|
||||||
title={t("bills.labels.subtotal")}
|
title={t("bills.labels.subtotal")}
|
||||||
value={totals.subtotal.toFormat()}
|
value={totals.subtotal.toFormat()}
|
||||||
@@ -298,7 +273,9 @@ export function BillFormComponent({
|
|||||||
title={t("bills.labels.discrepancy")}
|
title={t("bills.labels.discrepancy")}
|
||||||
valueStyle={{
|
valueStyle={{
|
||||||
color:
|
color:
|
||||||
totals.discrepancy.getAmount() === 0 ? "green" : "red",
|
totals.discrepancy.getAmount() === 0
|
||||||
|
? "green"
|
||||||
|
: "red",
|
||||||
}}
|
}}
|
||||||
value={totals.discrepancy.toFormat()}
|
value={totals.discrepancy.toFormat()}
|
||||||
precision={2}
|
precision={2}
|
||||||
@@ -315,6 +292,31 @@ export function BillFormComponent({
|
|||||||
return null;
|
return null;
|
||||||
}}
|
}}
|
||||||
</Form.Item>
|
</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>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ export function JobsDetailPage({
|
|||||||
initialValues={transormJobToForm(job)}
|
initialValues={transormJobToForm(job)}
|
||||||
>
|
>
|
||||||
<PageHeader
|
<PageHeader
|
||||||
onBack={() => window.history.back()}
|
// onBack={() => window.history.back()}
|
||||||
title={job.ro_number || t("general.labels.na")}
|
title={job.ro_number || t("general.labels.na")}
|
||||||
extra={menuExtra}
|
extra={menuExtra}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user