Skip to content

Commit

Permalink
One-time rents should not need override receivable type
Browse files Browse the repository at this point in the history
They should not generate automatic invoices.
  • Loading branch information
juho-kettunen-nc committed Nov 14, 2024
1 parent 3ede5b0 commit 8770f9b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/leases/components/leaseSections/rent/BasicInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ const BasicInfoIndexOrManual = ({

const BasicInfoOneTime = ({
leaseAttributes,
receivableTypeOptions,
rent
}: Props) => {
const typeOptions = getFieldOptions(leaseAttributes, LeaseRentsFieldPaths.TYPE);
Expand Down Expand Up @@ -331,16 +330,6 @@ const BasicInfoOneTime = ({
</Row>
</Authorization>

<Authorization allow={isFieldAllowedToRead(leaseAttributes, LeaseRentsFieldPaths.OVERRIDE_RECEIVABLE_TYPE)}>
<Row>
<Column>
<FormTextTitle uiDataKey={getUiDataLeaseKey(LeaseRentsFieldPaths.OVERRIDE_RECEIVABLE_TYPE)}>
{LeaseRentsFieldTitles.OVERRIDE_RECEIVABLE_TYPE}
</FormTextTitle>
<FormText>{getLabelOfOption(receivableTypeOptions, rent?.override_receivable_type) || '-'}</FormText>
</Column>
</Row>
</Authorization>
</Fragment>;
};

Expand Down

0 comments on commit 8770f9b

Please sign in to comment.