diff --git a/src/leases/components/leaseSections/invoice/InvoicePanel.tsx b/src/leases/components/leaseSections/invoice/InvoicePanel.tsx index 7f2d94d7a..f10e9d445 100644 --- a/src/leases/components/leaseSections/invoice/InvoicePanel.tsx +++ b/src/leases/components/leaseSections/invoice/InvoicePanel.tsx @@ -15,6 +15,7 @@ import { getInvoicesByLease, getIsEditClicked, getMethods as getInvoiceMethods } import { getCurrentLease } from "leases/selectors"; import type { Methods as MethodsType } from "types"; import type { Invoice, InvoiceList } from "invoices/types"; + type Props = { formValues: Record; invoice: Invoice | null | undefined; @@ -27,6 +28,7 @@ type Props = { receiveIsEditClicked: (...args: Array) => any; valid: boolean; }; + type State = { creditedInvoice: Record | null | undefined; interestInvoiceFor: Record | null | undefined; @@ -85,13 +87,40 @@ class InvoicePanel extends PureComponent { creditedInvoice, interestInvoiceFor } = this.state; - return -