From 059ca45a3ab25de0f8c7908099d0db90acfb9871 Mon Sep 17 00:00:00 2001
From: Patrick Fic <>
Date: Thu, 6 May 2021 14:13:13 -0700
Subject: [PATCH] IO-981 Remove job detail back arrow.
---
.../bill-form/bill-form.component.jsx | 144 +++++++++---------
.../jobs-detail.page.component.jsx | 2 +-
2 files changed, 74 insertions(+), 72 deletions(-)
diff --git a/client/src/components/bill-form/bill-form.component.jsx b/client/src/components/bill-form/bill-form.component.jsx
index 5f748e2d5..84360b257 100644
--- a/client/src/components/bill-form/bill-form.component.jsx
+++ b/client/src/components/bill-form/bill-form.component.jsx
@@ -219,6 +219,79 @@ export function BillFormComponent({
>
+
+ {() => {
+ const values = form.getFieldsValue([
+ "billlines",
+ "total",
+ "federal_tax_rate",
+ "state_tax_rate",
+ "local_tax_rate",
+ ]);
+ let totals;
+ if (
+ !!values.total &&
+ !!values.billlines &&
+ values.billlines.length > 0
+ )
+ totals = CalculateBillTotal(values);
+ if (!!totals)
+ return (
+
+
} wrap>
+
+
+
+
+
+
+
+
+ {form.getFieldValue("is_credit_memo") ? (
+
+ ) : null}
+
+ );
+ return null;
+ }}
+
{t("bills.labels.bill_lines")}
Click to upload
-
- {() => {
- const values = form.getFieldsValue([
- "billlines",
- "total",
- "federal_tax_rate",
- "state_tax_rate",
- "local_tax_rate",
- ]);
- let totals;
- if (
- !!values.total &&
- !!values.billlines &&
- values.billlines.length > 0
- )
- totals = CalculateBillTotal(values);
- if (!!totals)
- return (
-
-
}>
-
-
-
-
-
-
-
-
- {form.getFieldValue("is_credit_memo") ? (
-
- ) : null}
-
- );
- return null;
- }}
-
);
}
diff --git a/client/src/pages/jobs-detail/jobs-detail.page.component.jsx b/client/src/pages/jobs-detail/jobs-detail.page.component.jsx
index 9933d12c7..f0237cf20 100644
--- a/client/src/pages/jobs-detail/jobs-detail.page.component.jsx
+++ b/client/src/pages/jobs-detail/jobs-detail.page.component.jsx
@@ -159,7 +159,7 @@ export function JobsDetailPage({
initialValues={transormJobToForm(job)}
>
window.history.back()}
+ // onBack={() => window.history.back()}
title={job.ro_number || t("general.labels.na")}
extra={menuExtra}
/>