From 05f2c9c903eb4b393ece1e574b4e3ce23e32eeec Mon Sep 17 00:00:00 2001 From: abf Date: Mon, 23 Jan 2023 15:49:14 +0100 Subject: [PATCH] DDT-1469: update carrier service code max length --- .../transport-call-creator/transport-call-creator.component.ts | 2 +- src/assets/i18n/en.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/view/transport-call-creator/transport-call-creator.component.ts b/src/app/view/transport-call-creator/transport-call-creator.component.ts index a0138576..143ab66d 100644 --- a/src/app/view/transport-call-creator/transport-call-creator.component.ts +++ b/src/app/view/transport-call-creator/transport-call-creator.component.ts @@ -47,7 +47,7 @@ export class TransportCallCreatorComponent implements OnInit { this.portOfCalls$ = this.portService.getPorts(); this.transportCallFormGroup = this.formBuilder.group({ timestampChecking: new FormControl(null), - serviceCode: new FormControl(null, [Validators.required, Validators.maxLength(5)]), + serviceCode: new FormControl(null, [Validators.required, Validators.maxLength(11)]), exportVoyageNumber: new FormControl(null, [Validators.required, Validators.maxLength(50)]), importVoyageNumber: new FormControl(null, [Validators.maxLength(50)]), port: new FormControl(null, [Validators.required]), diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index 7089665a..53d6c13e 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -396,7 +396,7 @@ }, "carrierServiceCode": { "empty": "Carrier Service Code is required!", - "length": "Max length for Carrier Service Code is 5 characters!" + "length": "Max length for Carrier Service Code is 11 characters!" }, "carrierVoyageNumber": { "empty": "Carrier Voyage Number is required!",