diff --git a/angular.json b/angular.json
index 8393565..b291503 100644
--- a/angular.json
+++ b/angular.json
@@ -81,7 +81,9 @@
"options": {
"allowedHosts": [
"localhost",
- "sp.alphaomegainfosys.com"
+ "sp.alphaomegainfosys.com",
+ "sp-1.alphaomegainfosys.com",
+ "sp-2.alphaomegainfosys.com"
]
},
"configurations": {
diff --git a/src/app/common/footer/footer.component.html b/src/app/common/footer/footer.component.html
index 18c48a7..4cedebc 100644
--- a/src/app/common/footer/footer.component.html
+++ b/src/app/common/footer/footer.component.html
@@ -7,7 +7,7 @@
- © {{ currentYear }} alpha Omega Infosys. All rights reserved.
+ © {{ currentYear }} Alpha Omega Infosys. All rights reserved.
\ No newline at end of file
diff --git a/src/app/core/services/service-provider/basic-fee.service.ts b/src/app/core/services/service-provider/basic-fee.service.ts
index c13207f..01c5ac2 100644
--- a/src/app/core/services/service-provider/basic-fee.service.ts
+++ b/src/app/core/services/service-provider/basic-fee.service.ts
@@ -38,8 +38,8 @@ export class BasicFeeService {
createBasicFee(spid: number, fee: BasicFee): Observable {
const payload = {
P_SPID: spid,
- P_STARTCARNETVALUE: fee.startCarnetValue,
- P_ENDCARNETVALUE: fee.endCarnetValue,
+ P_STARTNUMBER: fee.startCarnetValue,
+ P_ENDNUMBER: fee.endCarnetValue,
P_FEES: fee.fees,
P_EFFDATE: this.commonService.formatUSDate(fee.effectiveDate),
P_USERID: this.userService.getUser()
@@ -50,8 +50,6 @@ export class BasicFeeService {
updateBasicFee(feeId: number, fee: BasicFee): Observable {
const payload = {
P_BASICFEESETUPID: feeId,
- P_STARTCARNETVALUE: fee.startCarnetValue,
- P_ENDCARNETVALUE: fee.endCarnetValue,
P_FEES: fee.fees,
P_EFFDATE: this.commonService.formatUSDate(fee.effectiveDate),
P_USERID: this.userService.getUser()
diff --git a/src/app/core/services/service-provider/contact.service.ts b/src/app/core/services/service-provider/contact.service.ts
index a410bd0..2dc1331 100644
--- a/src/app/core/services/service-provider/contact.service.ts
+++ b/src/app/core/services/service-provider/contact.service.ts
@@ -51,7 +51,7 @@ export class ContactService {
p_defcontactflag: data.defaultContact ? 'Y' : 'N',
p_firstname: data.firstName,
p_lastname: data.lastName,
- P_MIDDLEINITIAL: data.middleInitial,
+ P_MIDDLEINITIAL: data.middleInitial ?? '',
p_title: data.title,
p_phoneno: data.phone,
p_mobileno: data.mobile,
@@ -69,7 +69,7 @@ export class ContactService {
p_spcontactid: spContactId,
p_firstname: data.firstName,
p_lastname: data.lastName,
- P_MIDDLEINITIAL: data.middleInitial,
+ P_MIDDLEINITIAL: data.middleInitial ?? '',
p_title: data.title,
p_phoneno: data.phone,
p_mobileno: data.mobile,
diff --git a/src/app/param/table/param-table.component.html b/src/app/param/table/param-table.component.html
index 573fb45..8ffec6a 100644
--- a/src/app/param/table/param-table.component.html
+++ b/src/app/param/table/param-table.component.html
@@ -27,49 +27,49 @@
-
+
| Type |
{{ client.paramType }} |
-
+
Description |
{{ client.paramDesc || '--'}} |
-
+
Value |
{{ client.paramValue }} |
-
+
Additional Value 1 |
{{ client.addlParamValue1 || '--' }} |
-
+
Additional Value 2 |
{{ client.addlParamValue2 || '--'}} |
-
+
Additional Value 3 |
{{ client.addlParamValue3 || '--' }} |
-
+
Additional Value 4 |
{{ client.addlParamValue4 || '--' }} |
-
+
Additional Value 5 |
{{ client.addlParamValue5 || '--'}} |
diff --git a/src/app/param/table/param-table.component.ts b/src/app/param/table/param-table.component.ts
index 7f31f25..5771dc0 100644
--- a/src/app/param/table/param-table.component.ts
+++ b/src/app/param/table/param-table.component.ts
@@ -25,8 +25,8 @@ import { finalize } from 'rxjs';
styleUrl: './param-table.component.scss'
})
export class ParamTableComponent {
- @ViewChild(MatPaginator) paginator!: MatPaginator;
- @ViewChild(MatSort) sort!: MatSort;
+ //@ViewChild(MatPaginator) paginator!: MatPaginator;
+ //@ViewChild(MatSort) sort!: MatSort;
@Input() table_mode: TABLE_MODE = 'TABLE-RECORD';
@Input() paramHeading: string = 'Table Records';
@@ -54,6 +54,17 @@ export class ParamTableComponent {
private notificationService = inject(NotificationService);
dataSource = new MatTableDataSource([]);
+
+ @ViewChild(MatPaginator, { static: false })
+ set paginator(value: MatPaginator) {
+ this.dataSource.paginator = value;
+ }
+
+ @ViewChild(MatSort, { static: false })
+ set sort(value: MatSort) {
+ this.dataSource.sort = value;
+ }
+
paramForm: FormGroup;
ngAfterViewInit() {
@@ -62,8 +73,8 @@ export class ParamTableComponent {
this.dataSource.data = this.paramData;
}
- displayedColumns: string[] = ['ParamType', 'ParamDesc', 'paramvalue', 'addlparamvalue1', 'addlparamvalue2', 'addlparamvalue3',
- 'addlparamvalue4', 'addlparamvalue5', 'actions'];
+ displayedColumns: string[] = ['paramType', 'paramDesc', 'paramValue', 'addlParamValue1', 'addlParamValue2', 'addlParamValue3',
+ 'addlParamValue4', 'addlParamValue5', 'actions'];
formControls: any = {};
diff --git a/src/app/service-provider/add/add-service-provider.component.html b/src/app/service-provider/add/add-service-provider.component.html
index 6e5d229..726a4b5 100644
--- a/src/app/service-provider/add/add-service-provider.component.html
+++ b/src/app/service-provider/add/add-service-provider.component.html
@@ -1,5 +1,5 @@
-
@@ -20,7 +20,7 @@
-
+
Carnet Sequence
-
Carnet Fee & Commission Setup
@@ -38,7 +38,7 @@
-
Basic Fee Setup
@@ -47,7 +47,7 @@
-
+
Counterfoil Setup
-
Continuation Sheet Fee Setup
@@ -66,7 +66,7 @@
-
+
Expedited Fee Setup
-
+
Security Deposit
-
+
Cargo Rate Setup
Cargo Surety
-
+
{{ cargoSurety.name }}
-
- Cargo Surety is required
-
Cargo Policy
-
+
{{ cargoPolicy.name }}
-
- Cargo Policy is required
-
Bond Surety
-
+
{{ bondSurety.name }}
-
- Bond Surety is required
-
diff --git a/src/app/service-provider/basic-details/basic-details.component.ts b/src/app/service-provider/basic-details/basic-details.component.ts
index 84e87ee..722f41c 100644
--- a/src/app/service-provider/basic-details/basic-details.component.ts
+++ b/src/app/service-provider/basic-details/basic-details.component.ts
@@ -96,9 +96,9 @@ export class BasicDetailsComponent implements OnInit, OnDestroy {
zip: ['', [Validators.required, ZipCodeValidator('country')]],
issuingRegion: ['', Validators.required],
replacementRegion: ['', Validators.required],
- cargoSurety: ['', Validators.required],
- cargoPolicyNo: ['', Validators.required],
- bondSurety: ['', Validators.required]
+ cargoSurety: [''],
+ cargoPolicyNo: [''],
+ bondSurety: ['']
});
}
diff --git a/src/app/service-provider/basic-fee/basic-fee.component.ts b/src/app/service-provider/basic-fee/basic-fee.component.ts
index 82e7cfe..91de9f1 100644
--- a/src/app/service-provider/basic-fee/basic-fee.component.ts
+++ b/src/app/service-provider/basic-fee/basic-fee.component.ts
@@ -111,7 +111,7 @@ export class BasicFeeComponent {
{ basicFeeId: 0, startCarnetValue: 50000, endCarnetValue: 149999, fees: 365, effectiveDate: new Date() },
{ basicFeeId: 0, startCarnetValue: 150000, endCarnetValue: 399999, fees: 425, effectiveDate: new Date() },
{ basicFeeId: 0, startCarnetValue: 400000, endCarnetValue: 999999, fees: 480, effectiveDate: new Date() },
- { basicFeeId: 0, startCarnetValue: 1000000, endCarnetValue: null, fees: 545, effectiveDate: new Date() }
+ { basicFeeId: 0, startCarnetValue: 1000000, endCarnetValue: 99999999, fees: 545, effectiveDate: new Date() }
];
// Create an array of observables for each fee creation
@@ -130,8 +130,6 @@ export class BasicFeeComponent {
},
error: (error) => {
console.error('Error initializing default fees:', error);
- // Even if some failed, try to load what was created
- this.loadBasicFees();
}
});
}
diff --git a/src/app/service-provider/contacts/contacts.component.ts b/src/app/service-provider/contacts/contacts.component.ts
index 5b1d90b..028fff0 100644
--- a/src/app/service-provider/contacts/contacts.component.ts
+++ b/src/app/service-provider/contacts/contacts.component.ts
@@ -64,7 +64,7 @@ export class ContactsComponent implements OnInit {
title: ['', [Validators.required, Validators.maxLength(100)]],
phone: ['', [Validators.required, Validators.pattern(/^[0-9\-\(\)]{10,15}$/)]],
mobile: ['', [Validators.required, Validators.pattern(/^[0-9\-\(\)]{10,15}$/)]],
- fax: ['', [Validators.required, Validators.pattern(/^[0-9\-\(\)]{10,15}$/)]],
+ fax: ['', [Validators.pattern(/^[0-9\-\(\)]{10,15}$/)]],
email: ['', [Validators.required, Validators.email, Validators.maxLength(100)]],
defaultContact: [false]
});