Skip to content

Commit

Permalink
include amend id's for output labelling (#1953)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-eyds authored Jun 26, 2024
1 parent 1f35151 commit aa83ffc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
cols="9"
class="pt-1 pb-0 mb-0"
>
<p class="effect-of-order-text">
<p>
{{ order.effectOfOrder || '(Not Entered)' }}
</p>
</v-col>
Expand Down Expand Up @@ -133,9 +133,6 @@ p {
opacity: .5
}
}
.effect-of-order-text {
line-height: 22px;
}
#court-commission-order-review {
background-color: #F2F6FB;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ import { ActionTypes } from '@/enums'

// Existing court order information may not be altered. All elements are required.
export interface CourtOrderIF {
orderId?: number
courtOrder?: boolean // Optional property indicating court order otherwise commission order
courtName?: string, // Max length 250.
courtRegistry?: string, // Max length 60.
fileNumber: string, // Max length 20.
orderDate: string, // UTC ISO 8601 datetime format YYYY-MM-DDThh:mm:ssTZD.
effectOfOrder?: string, // Max length 500.
action?: ActionTypes // Optional action type for amendments
amendOrderId?: number // to associate amended order to removed order
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { CourtOrderIF } from '@/interfaces'

export interface AddEditSaNoticeIF {
noticeId?: number
amendNoticeId?: number // to associate amended notice to removed notice
securitiesActNoticeType: SaNoticeTypes
effectiveDateTime: string
securitiesActOrders?: Array<CourtOrderIF>
Expand Down
2 changes: 2 additions & 0 deletions ppr-ui/src/utils/registration-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ export function setAmendmentList (baseList:Array<any>, addList:Array<any>, delet
// Clean and format notice and orders
const formattedNotice = {
...removeEmptyProperties(notice),
amendNoticeId: notice.noticeId,
...(!!notice.effectiveDateTime && {
effectiveDateTime: convertToISO8601LastMinute(notice.effectiveDateTime.split('T')[0])
}),
securitiesActOrders: notice.securitiesActOrders?.filter(order =>
order.action !== ActionTypes.REMOVED).map(order => ({
...removeEmptyProperties(order),
amendOrderId: order.orderId,
orderDate: convertToISO8601LastMinute(order.orderDate.split('T')[0])
}))
} as AddEditSaNoticeIF
Expand Down

0 comments on commit aa83ffc

Please sign in to comment.