Fixed BOD-63 breaking changes. Original functionality restored.
This commit is contained in:
@@ -71,7 +71,6 @@ export function InvoiceDetailEditContainer({ bodyshop }) {
|
|||||||
data
|
data
|
||||||
? {
|
? {
|
||||||
...data.invoices_by_pk,
|
...data.invoices_by_pk,
|
||||||
// invoicelines: [],
|
|
||||||
date: data.invoices_by_pk
|
date: data.invoices_by_pk
|
||||||
? moment(data.invoices_by_pk.date)
|
? moment(data.invoices_by_pk.date)
|
||||||
: null,
|
: null,
|
||||||
|
|||||||
@@ -115,28 +115,23 @@ export default function InvoiceEnterModalLinesComponent({
|
|||||||
</Select>
|
</Select>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
{
|
{!!getFieldsValue(["invoicelines"]).invoicelines[index] &&
|
||||||
//TODO Will need to refactor this to use proper form components in the search select above.
|
!getFieldsValue(["invoicelines"]).invoicelines[index]
|
||||||
getFieldsValue("invoicelines")[index] &&
|
.joblineid ? (
|
||||||
// getFieldsValue("invoicelines")[index].joblinename &&
|
<Form.Item
|
||||||
!getFieldsValue("invoicelines").invoicelines[index]
|
label={t("invoicelines.fields.line_desc")}
|
||||||
.joblineid ? (
|
key={`${index}line_desc`}
|
||||||
<Form.Item
|
name={[field.name, "line_desc"]}
|
||||||
label={t("invoicelines.fields.line_desc")}
|
rules={[
|
||||||
key={`${index}line_desc`}
|
{
|
||||||
name={[field.name, "line_desc"]}
|
required: true,
|
||||||
rules={[
|
message: t("general.validation.required"),
|
||||||
{
|
},
|
||||||
required: !getFieldsValue("invoicelines")[index]
|
]}
|
||||||
.joblineid,
|
>
|
||||||
message: t("general.validation.required"),
|
<Input />
|
||||||
},
|
</Form.Item>
|
||||||
]}
|
) : null}
|
||||||
>
|
|
||||||
<Input />
|
|
||||||
</Form.Item>
|
|
||||||
) : null
|
|
||||||
}
|
|
||||||
|
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("invoicelines.fields.actual")}
|
label={t("invoicelines.fields.actual")}
|
||||||
|
|||||||
Reference in New Issue
Block a user