Down payment configuration for Loan Products (#1836)

Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
José Alberto Hernández
2023-08-07 16:41:50 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent a9b8543120
commit 861cf7a000
11 changed files with 90 additions and 43 deletions
@@ -9,9 +9,7 @@ import { extract } from '../core/i18n/i18n.service';
/** Custom Components */
import { IndividualCollectionSheetComponent } from './individual-collection-sheet/individual-collection-sheet.component';
/** Custom Resolvers */
import { GetOfficesResolver } from './individual-collection-sheet/get-offices.resolver';
import { OfficesResolver } from 'app/organization/offices/common-resolvers/offices.resolver';
const routes: Routes = [
Route.withShell([
@@ -23,7 +21,7 @@ const routes: Routes = [
data: { title: extract('Individual Collection Sheet'), breadcrumb: 'Individual Collection Sheet', routeParamBreadcrumb: false },
component: IndividualCollectionSheetComponent,
resolve: {
officesData: GetOfficesResolver
officesData: OfficesResolver
}
},
]
@@ -33,7 +31,7 @@ const routes: Routes = [
@NgModule({
imports: [RouterModule.forChild(routes)],
providers: [GetOfficesResolver],
providers: [],
exports: [RouterModule]
})
export class CollectionsRoutingModule { }
@@ -1,30 +0,0 @@
/** Angular Imports */
import { Injectable } from '@angular/core';
import { Resolve } from '@angular/router';
/** rxjs Imports */
import { Observable } from 'rxjs';
/** Custom Services */
import { CollectionsService } from '../collections.service';
/**
* Returns all the offices data.
*/
@Injectable()
export class GetOfficesResolver implements Resolve<Object> {
/**
* @param {CollectionsService} CollectionsService Collections service.
*/
constructor(private collectionsService: CollectionsService) { }
/**
* Returns the Collection Office Data.
* @returns {Observable<any>}
*/
resolve(): Observable<any> {
return this.collectionsService.getOffices();
}
}
@@ -50,7 +50,7 @@
<mat-card-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="5px">
<button type="button" mat-raised-button [routerLink]="['../']">Cancel</button>
<button mat-raised-button color="primary" [disabled]="!collectionSheetForm.valid">
<fa-icon icon="search"></fa-icon>&nbsp; Collection Sheet
<fa-icon icon="search" class="m-r-10"></fa-icon> Collection Sheet
</button>
</mat-card-actions>