diff --git a/src/app/auth/register.component.ts b/src/app/auth/register.component.ts index 7a44f08..c39f6a6 100644 --- a/src/app/auth/register.component.ts +++ b/src/app/auth/register.component.ts @@ -70,7 +70,7 @@ export class RegisterComponent { password: signupForm.password, display_name: customerForm.display_name, full_name: customerForm.full_name, - postcode: customerForm.postcode, + postcode: customerForm.postcode.toUpperCase(), year_of_birth: customerForm.year_of_birth, }; console.log(data); @@ -114,7 +114,7 @@ export class RegisterComponent { sector: organisationForm.sector, street_name: organisationForm.street_name, town: organisationForm.town, - postcode: organisationForm.postcode, + postcode: organisationForm.postcode.toUpperCase(), }; this.api .register(data) diff --git a/src/app/dashboard/account-edit.component.ts b/src/app/dashboard/account-edit.component.ts index cf1210b..5e8cc69 100644 --- a/src/app/dashboard/account-edit.component.ts +++ b/src/app/dashboard/account-edit.component.ts @@ -89,7 +89,7 @@ export class AccountEditComponent implements OnInit { const submitData = { email: settingForm.email, - postcode: settingForm.postcode, + postcode: settingForm.postcode.toUpperCase(), password: settingForm.password, new_password: settingForm.new_password, name: settingOrganisationForm.name, @@ -142,7 +142,7 @@ export class AccountEditComponent implements OnInit { const submitData = { email: settingForm.email, - postcode: settingForm.postcode, + postcode: settingForm.postcode.toUpperCase(), password: settingForm.password, new_password: settingForm.new_password, full_name: settingCustomerForm.full_name, diff --git a/src/app/dashboard/transaction-log.component.html b/src/app/dashboard/transaction-log.component.html index f415a96..c617837 100644 --- a/src/app/dashboard/transaction-log.component.html +++ b/src/app/dashboard/transaction-log.component.html @@ -101,7 +101,7 @@
Log of Outgoing Transactions This lists all purchases that have been submitted. -
diff --git a/src/app/dashboard/transaction-log.component.ts b/src/app/dashboard/transaction-log.component.ts index 17ae75a..ec0984e 100644 --- a/src/app/dashboard/transaction-log.component.ts +++ b/src/app/dashboard/transaction-log.component.ts @@ -29,6 +29,7 @@ export class TransactionLogComponent implements OnInit { transactionFormStatusSuccess: string; transactionFormStatusError = 'Error received, please try again.'; updatedTime: string; + accountType: any; showMeta = false; public paginateConfig: PaginationInstance = { @@ -58,6 +59,7 @@ export class TransactionLogComponent implements OnInit { ngOnInit(): void { this.loadTransactions(1); + this.accountType = localStorage.getItem('usertype'); } loadTransactions(logPage: number) { diff --git a/src/app/layouts/full-layout.component.html b/src/app/layouts/full-layout.component.html index 31e297a..7dec667 100644 --- a/src/app/layouts/full-layout.component.html +++ b/src/app/layouts/full-layout.component.html @@ -38,7 +38,7 @@ - - -