From 7a0d5d712a2dcb1c3f5dce4b2fab1d6fe4f544a4 Mon Sep 17 00:00:00 2001
From: Patrick Fic <>
Date: Wed, 13 Jul 2022 11:35:21 -0700
Subject: [PATCH] IO-1906 Remove bin from bill edit.
---
.../bill-form/bill-form.component.jsx | 20 ++++----
.../bill-form/bill-form.lines.component.jsx | 47 ++++++++++---------
2 files changed, 36 insertions(+), 31 deletions(-)
diff --git a/client/src/components/bill-form/bill-form.component.jsx b/client/src/components/bill-form/bill-form.component.jsx
index 12617db5b..3ff123743 100644
--- a/client/src/components/bill-form/bill-form.component.jsx
+++ b/client/src/components/bill-form/bill-form.component.jsx
@@ -314,15 +314,17 @@ export function BillFormComponent({
>
-
-
-
+ {!billEdit && (
+
+
+
+ )}
),
},
-
- {
- title: t("billlines.fields.location"),
- dataIndex: "location",
- editable: true,
- label: t("billlines.fields.location"),
- formItemProps: (field) => {
- return {
- key: `${field.index}location`,
- name: [field.name, "location"],
- };
- },
- formInput: (record, index) => (
-
- ),
- },
+ ...(billEdit
+ ? []
+ : [
+ {
+ title: t("billlines.fields.location"),
+ dataIndex: "location",
+ editable: true,
+ label: t("billlines.fields.location"),
+ formItemProps: (field) => {
+ return {
+ key: `${field.index}location`,
+ name: [field.name, "location"],
+ };
+ },
+ formInput: (record, index) => (
+
+ ),
+ },
+ ]),
{
title: t("billlines.labels.deductedfromlbr"),
dataIndex: "deductedfromlbr",