diff --git a/src/app/carnet/checkout/checkout.component.html b/src/app/carnet/checkout/checkout.component.html index a31dca8..c59ea04 100644 --- a/src/app/carnet/checkout/checkout.component.html +++ b/src/app/carnet/checkout/checkout.component.html @@ -33,7 +33,7 @@
- Bond Premium: + {{bondPremiumLabel}}: {{estimatedFees.bondPremium | currency}}
@@ -46,6 +46,16 @@ LDI Premium: {{estimatedFees.ldiPremium | currency}} + +
+ Security Amount: + {{estimatedFees.securityAmount | currency}} +
+
+ Insured Value: + {{estimatedFees.insuredValue | currency}} +
+
Total: {{ orderTotal | currency }} diff --git a/src/app/carnet/checkout/checkout.component.ts b/src/app/carnet/checkout/checkout.component.ts index 085d7da..a57d0a2 100644 --- a/src/app/carnet/checkout/checkout.component.ts +++ b/src/app/carnet/checkout/checkout.component.ts @@ -28,6 +28,7 @@ export class CheckoutComponent { currentApplicationDetails: { headerid: number, applicationName: string, applicationType: string } | null = null; changeInProgress: boolean = false; estimatedFees: Fees = {}; + bondPremiumLabel: string = 'Bond Premium'; @ViewChild('paypalcontrol', { static: true }) paypalElement!: ElementRef; @@ -56,6 +57,15 @@ export class CheckoutComponent { next: (data: Fees) => { if (data) { this.estimatedFees = data; + + if (this.estimatedFees.securityType === 'B') { + this.bondPremiumLabel = 'Bond Premium'; + } else if (this.estimatedFees.securityType === 'C') { + this.bondPremiumLabel = 'Cash Deposit'; + } else if (this.estimatedFees.securityType === 'G') { + this.bondPremiumLabel = 'Refundable claim deposit'; + } + this.calculateTotal(); } }, diff --git a/src/app/carnet/goods/goods.component.html b/src/app/carnet/goods/goods.component.html index 963033e..cc5b612 100644 --- a/src/app/carnet/goods/goods.component.html +++ b/src/app/carnet/goods/goods.component.html @@ -16,11 +16,16 @@
-
- Road Vehicles - used? - Horse used? -
+ + Are Road vehicle included in your General List? + Yes + No + + + Are Horse included in your General List? + Yes + No +
diff --git a/src/app/carnet/goods/goods.component.scss b/src/app/carnet/goods/goods.component.scss index c70ca04..8f5f8e3 100644 --- a/src/app/carnet/goods/goods.component.scss +++ b/src/app/carnet/goods/goods.component.scss @@ -20,6 +20,22 @@ } } + .radio-group { + display: flex; + gap: 16px; + + mat-label { + margin-top: 5px; + color: var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface)); + font-family: var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font)); + line-height: var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height)); + font-size: var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size)); + letter-spacing: var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking)); + font-weight: var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight)); + } + + } + .full-width { width: 100%; } diff --git a/src/app/carnet/goods/goods.component.ts b/src/app/carnet/goods/goods.component.ts index 084709a..1c55dea 100644 --- a/src/app/carnet/goods/goods.component.ts +++ b/src/app/carnet/goods/goods.component.ts @@ -79,8 +79,8 @@ export class GoodsComponent { commercialSample: [false], professionalEquipment: [false], exhibitionsFair: [false], - roadVehiclesUsed: [false], - horseUsed: [false], + roadVehiclesUsed: ['N'], + horseUsed: ['N'], authorizedRepresentatives: ['', Validators.required] }, { validator: this.atLeastOneRequired } ); @@ -176,8 +176,8 @@ export class GoodsComponent { this.goodsForm.patchValue({ commercialSample: data.commercialSample || false, professionalEquipment: data.professionalEquipment || false, - exhibitionsFair: data.exhibitionsFair || false, - roadVehiclesUsed: data.roadVehiclesUsed || false, + exhibitionsFair: data.exhibitionsFair || 'N', + roadVehiclesUsed: data.roadVehiclesUsed || 'N', horseUsed: data.horseUsed || false, authorizedRepresentatives: data.authorizedRepresentatives || '' }); diff --git a/src/app/carnet/shipping/fees-dialog.component.ts b/src/app/carnet/shipping/fees-dialog.component.ts index 54eb13a..79ba86c 100644 --- a/src/app/carnet/shipping/fees-dialog.component.ts +++ b/src/app/carnet/shipping/fees-dialog.component.ts @@ -23,10 +23,18 @@ import { NotificationService } from '../../core/services/common/notification.ser {{estimatedFees.continuationSheetFee | currency}}
  • Expedited fee: {{estimatedFees.expeditedFee | currency}}
  • Shipping fee: {{estimatedFees.shippingFee | currency}}
  • -
  • Bond Premium: {{estimatedFees.bondPremium | currency}}
  • +
  • {{bondPremiumLabel}}: {{estimatedFees.bondPremium | currency}}
  • Cargo Premium: {{estimatedFees.cargoPremium | currency}}
  • LDI Premium: {{estimatedFees.ldiPremium | currency}}
  • +
    +

    Additional Charges:

    + +
    +

    Total: {{total | currency}}