From 84795b79ed5c7c58b7e0d2175286483ae5024476 Mon Sep 17 00:00:00 2001 From: Qin Date: Fri, 13 Dec 2024 15:04:20 -0800 Subject: [PATCH] update filing json, poa logic Signed-off-by: Qin --- .../NoticeOfWithdrawal/PlanOfArrangement.vue | 3 ++ src/enums/effectOfOrderTypes.ts | 3 +- src/services/enum-utilities.ts | 5 +++ src/views/NoticeOfWithdrawal.vue | 41 ++++++++----------- 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/components/NoticeOfWithdrawal/PlanOfArrangement.vue b/src/components/NoticeOfWithdrawal/PlanOfArrangement.vue index e50db4cdd..4cc244c2a 100644 --- a/src/components/NoticeOfWithdrawal/PlanOfArrangement.vue +++ b/src/components/NoticeOfWithdrawal/PlanOfArrangement.vue @@ -146,6 +146,9 @@ export default class PlanOfArrangement extends Vue { (v: string) => (!v || !(v.length < 5)) || 'Court order number is invalid', // too short (v: string) => (!v || !(v.length > 20)) || 'Court order number is invalid' // too long ] + if (this.planOfArrangement) { + this.courtOrderNumRules.push((v: string) => !!v || 'A Court Order number is required') + } this.$refs.courtNumRef.validate() } diff --git a/src/enums/effectOfOrderTypes.ts b/src/enums/effectOfOrderTypes.ts index 079a63949..95d2ac85a 100644 --- a/src/enums/effectOfOrderTypes.ts +++ b/src/enums/effectOfOrderTypes.ts @@ -1,3 +1,4 @@ export enum EffectOfOrderTypes { - PLAN_OF_ARRANGEMENT = 'planOfArrangement' + PLAN_OF_ARRANGEMENT = 'planOfArrangement', + ARRANGEMENT_EFFECT = 'arrangementEffect' } diff --git a/src/services/enum-utilities.ts b/src/services/enum-utilities.ts index d333094a9..81430f0f2 100644 --- a/src/services/enum-utilities.ts +++ b/src/services/enum-utilities.ts @@ -385,6 +385,11 @@ export default class EnumUtilities { return (effectOfOrder === EffectOfOrderTypes.PLAN_OF_ARRANGEMENT) } + /** Returns True if one or more of the POA have come into effect. */ + static isArrangementComeIntoEffect (effectOfOrder: EffectOfOrderTypes): boolean { + return (effectOfOrder === EffectOfOrderTypes.ARRANGEMENT_EFFECT) + } + // // Conversion helpers // diff --git a/src/views/NoticeOfWithdrawal.vue b/src/views/NoticeOfWithdrawal.vue index dd117346c..79ca3d210 100644 --- a/src/views/NoticeOfWithdrawal.vue +++ b/src/views/NoticeOfWithdrawal.vue @@ -152,10 +152,10 @@ >