Datepickers using max date with business date
This commit is contained in:
committed by
Arnold Gálovics
parent
753791a078
commit
a4b266080b
+1
@@ -70,6 +70,7 @@ export class EditStandingInstructionsComponent implements OnInit {
|
|||||||
* Creates and sets the edit standing instructions form.
|
* Creates and sets the edit standing instructions form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createEditStandingInstructionsForm();
|
this.createEditStandingInstructionsForm();
|
||||||
const presentDate = new Date();
|
const presentDate = new Date();
|
||||||
const n = presentDate.getFullYear();
|
const n = presentDate.getFullYear();
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ export class CreateClosureComponent implements OnInit {
|
|||||||
* Creates the accounting closure form.
|
* Creates the accounting closure form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createAccountingClosureForm();
|
this.createAccountingClosureForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ export class CreateJournalEntryComponent implements OnInit {
|
|||||||
* Creates the journal entry form.
|
* Creates the journal entry form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createJournalEntryForm();
|
this.createJournalEntryForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ export class FrequentPostingsComponent implements OnInit {
|
|||||||
* Creates the frequent postings form and sets the affected gl entry form array.
|
* Creates the frequent postings form and sets the affected gl entry form array.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createFrequentPostingsForm();
|
this.createFrequentPostingsForm();
|
||||||
this.setAffectedGLEntryForm();
|
this.setAffectedGLEntryForm();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ export class MigrateOpeningBalancesComponent implements OnInit {
|
|||||||
* Creates the opening balances form. (initially retrieves gl accounts on the basis of specified office)
|
* Creates the opening balances form. (initially retrieves gl accounts on the basis of specified office)
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createOpeningBalancesForm();
|
this.createOpeningBalancesForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ export class PeriodicAccrualsComponent implements OnInit {
|
|||||||
* Creates periodic accruals form.
|
* Creates periodic accruals form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createPeriodicAccrualsForm();
|
this.createPeriodicAccrualsForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -42,6 +42,7 @@ export class CreateProvisioningEntryComponent implements OnInit {
|
|||||||
* Creates the provisioning entry form.
|
* Creates the provisioning entry form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createProvisioningEntryForm();
|
this.createProvisioningEntryForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ export class SearchJournalEntryComponent implements OnInit, AfterViewInit {
|
|||||||
* Sets filtered offices and gl accounts for autocomplete and journal entries table.
|
* Sets filtered offices and gl accounts for autocomplete and journal entries table.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.setFilteredOffices();
|
this.setFilteredOffices();
|
||||||
this.setFilteredGlAccounts();
|
this.setFilteredGlAccounts();
|
||||||
this.getJournalEntries();
|
this.getJournalEntries();
|
||||||
|
|||||||
+1
@@ -48,6 +48,7 @@ export class ActivateCenterComponent implements OnInit {
|
|||||||
* Creates the activate center form.
|
* Creates the activate center form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createActivateCenterForm();
|
this.createActivateCenterForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -59,6 +59,7 @@ export class AttachCenterMeetingComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createCenterMeetingForm();
|
this.createCenterMeetingForm();
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -70,6 +70,7 @@ export class CenterAttendanceComponent implements OnInit {
|
|||||||
* Sets the members table.
|
* Sets the members table.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
if (this.membersData !== undefined && this.membersData !== null) {
|
if (this.membersData !== undefined && this.membersData !== null) {
|
||||||
this.dataSource = this.membersData.map((member: any) => ({ clientId: member.id, attendanceType: 1 }));
|
this.dataSource = this.membersData.map((member: any) => ({ clientId: member.id, attendanceType: 1 }));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ export class CloseCenterComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createCloseCenterForm();
|
this.createCloseCenterForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -57,6 +57,7 @@ export class EditCenterMeetingScheduleComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createEditMeetingScheduleForm();
|
this.createEditMeetingScheduleForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -62,6 +62,7 @@ export class EditCenterMeetingComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createEditCenterMeetingForm();
|
this.createEditCenterMeetingForm();
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ export class CreateCenterComponent implements OnInit {
|
|||||||
* Creates and sets the center form.
|
* Creates and sets the center form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createCenterForm();
|
this.createCenterForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ export class EditCenterComponent implements OnInit {
|
|||||||
* Creates the edit center form.
|
* Creates the edit center form.
|
||||||
*/
|
*/
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createEditCenterForm();
|
this.createEditCenterForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -39,6 +39,7 @@ export class ClientFamilyMemberDialogComponent implements OnInit {
|
|||||||
private settingsService: SettingsService) { }
|
private settingsService: SettingsService) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createFamilyMemberForm();
|
this.createFamilyMemberForm();
|
||||||
if (this.data.context === 'Edit') {
|
if (this.data.context === 'Edit') {
|
||||||
this.familyMemberForm.patchValue({
|
this.familyMemberForm.patchValue({
|
||||||
|
|||||||
+3
-1
@@ -136,13 +136,15 @@
|
|||||||
<mat-datepicker #submittedOnDatePicker></mat-datepicker>
|
<mat-datepicker #submittedOnDatePicker></mat-datepicker>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
<mat-checkbox fxFlex="48%" labelPosition="before" formControlName="active" class="margin-v">
|
<mat-checkbox fxFlex="48%" labelPosition="before" formControlName="active" class="margin-v">
|
||||||
Active?
|
Active?
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
|
|
||||||
<mat-form-field *ngIf="createClientForm.contains('activationDate')" fxFlex="48%" (click)="activatedOnDatePicker.open()">
|
<mat-form-field *ngIf="createClientForm.contains('activationDate')" fxFlex="48%" (click)="activatedOnDatePicker.open()">
|
||||||
<mat-label>Activation Date</mat-label>
|
<mat-label>Activation Date</mat-label>
|
||||||
<input matInput [min]="minDate" [max]="maxDate" [matDatepicker]="activatedOnDatePicker" required
|
<input matInput [min]="minDate" [max]="createClientForm.value.submittedOnDate" [matDatepicker]="activatedOnDatePicker" required
|
||||||
formControlName="activationDate">
|
formControlName="activationDate">
|
||||||
<mat-datepicker-toggle matSuffix [for]="activatedOnDatePicker"></mat-datepicker-toggle>
|
<mat-datepicker-toggle matSuffix [for]="activatedOnDatePicker"></mat-datepicker-toggle>
|
||||||
<mat-datepicker #activatedOnDatePicker></mat-datepicker>
|
<mat-datepicker #activatedOnDatePicker></mat-datepicker>
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ export class ClientGeneralStepComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.setOptions();
|
this.setOptions();
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -48,6 +48,7 @@ export class ActivateClientComponent implements OnInit {
|
|||||||
* Creates the activate client form.
|
* Creates the activate client form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createActivateClientForm();
|
this.createActivateClientForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -55,6 +55,7 @@ export class AddClientChargeComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createClientsChargeForm();
|
this.createClientsChargeForm();
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ export class CloseClientComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createCloseClientForm();
|
this.createCloseClientForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -48,6 +48,7 @@ export class ReactivateClientComponent implements OnInit {
|
|||||||
* Creates the reactivate client form.
|
* Creates the reactivate client form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createReactivateClientForm();
|
this.createReactivateClientForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ export class RejectClientComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createRejectClientForm();
|
this.createRejectClientForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -50,6 +50,7 @@ export class TransferClientComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createTransferClientForm();
|
this.createTransferClientForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -47,6 +47,7 @@ export class UndoClientRejectionComponent implements OnInit {
|
|||||||
* Creates the undo client rejection form.
|
* Creates the undo client rejection form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createUndoClientRejectionForm();
|
this.createUndoClientRejectionForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -50,6 +50,7 @@ export class WithdrawClientComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createWithdrawClientForm();
|
this.createWithdrawClientForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -51,6 +51,7 @@ export class AddFamilyMemberComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createAddFamilyMemberForm();
|
this.createAddFamilyMemberForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -50,6 +50,7 @@ export class EditFamilyMemberComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createEditFamilyMemberForm(this.familyMemberDetails);
|
this.createEditFamilyMemberForm(this.familyMemberDetails);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ export class EditClientComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createEditClientForm();
|
this.createEditClientForm();
|
||||||
this.setOptions();
|
this.setOptions();
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
|
|||||||
+1
@@ -100,6 +100,7 @@ export class IndividualCollectionSheetComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
if (localStorage.getItem('Success')) {
|
if (localStorage.getItem('Success')) {
|
||||||
localStorage.removeItem('Success');
|
localStorage.removeItem('Success');
|
||||||
this.Success = true;
|
this.Success = true;
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { DatePipe } from '@angular/common';
|
import { DatePipe } from '@angular/common';
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { SettingsService } from 'app/settings/settings.service';
|
|
||||||
import * as moment from 'moment';
|
import * as moment from 'moment';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
@@ -8,12 +7,10 @@ import * as moment from 'moment';
|
|||||||
})
|
})
|
||||||
export class Dates {
|
export class Dates {
|
||||||
|
|
||||||
constructor(private settingsService: SettingsService,
|
constructor(private datePipe: DatePipe) {}
|
||||||
private datePipe: DatePipe) {}
|
|
||||||
|
|
||||||
public getDate(timestamp: any): string {
|
public getDate(timestamp: any): string {
|
||||||
const dateFormat = this.settingsService.dateFormat;
|
return this.datePipe.transform(timestamp, 'YYYY-MM-DD');
|
||||||
return this.datePipe.transform(timestamp, dateFormat);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public formatDate(timestamp: any, dateFormat: string): string {
|
public formatDate(timestamp: any, dateFormat: string): string {
|
||||||
@@ -27,4 +24,8 @@ export class Dates {
|
|||||||
return moment(value).toDate();
|
return moment(value).toDate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public convertToDate(value: any, format: string): Date {
|
||||||
|
return moment(value).toDate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-1
@@ -1,6 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
||||||
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
import { FixedDepositsService } from '../../fixed-deposits.service';
|
import { FixedDepositsService } from '../../fixed-deposits.service';
|
||||||
@@ -38,13 +39,16 @@ export class FixedDepositAccountDetailsStepComponent implements OnInit {
|
|||||||
* Sets fixed deposits account details form.
|
* Sets fixed deposits account details form.
|
||||||
* @param {FormBuilder} formBuilder Form Builder.
|
* @param {FormBuilder} formBuilder Form Builder.
|
||||||
* @param {FixedDepositsService} fixedDepositsService Fixed Deposits Service.
|
* @param {FixedDepositsService} fixedDepositsService Fixed Deposits Service.
|
||||||
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: FormBuilder,
|
||||||
private fixedDepositsService: FixedDepositsService) {
|
private fixedDepositsService: FixedDepositsService,
|
||||||
|
private settingsService: SettingsService) {
|
||||||
this.createFixedDepositsAccountDetailsForm();
|
this.createFixedDepositsAccountDetailsForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
if (this.fixedDepositsAccountTemplate) {
|
if (this.fixedDepositsAccountTemplate) {
|
||||||
this.productData = this.fixedDepositsAccountTemplate.productOptions;
|
this.productData = this.fixedDepositsAccountTemplate.productOptions;
|
||||||
|
|||||||
+5
-1
@@ -1,6 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, FormControl, Validators } from '@angular/forms';
|
import { FormGroup, FormBuilder, FormControl, Validators } from '@angular/forms';
|
||||||
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fixed Deposits Account Settings Step
|
* Fixed Deposits Account Settings Step
|
||||||
@@ -34,8 +35,10 @@ export class FixedDepositAccountSettingsStepComponent implements OnInit, OnChang
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {FormBuilder} formBuilder Form Builder
|
* @param {FormBuilder} formBuilder Form Builder
|
||||||
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder) {
|
constructor(private formBuilder: FormBuilder,
|
||||||
|
private settingsService: SettingsService) {
|
||||||
this.createFixedDepositAccountSettingsForm();
|
this.createFixedDepositAccountSettingsForm();
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
}
|
}
|
||||||
@@ -72,6 +75,7 @@ export class FixedDepositAccountSettingsStepComponent implements OnInit, OnChang
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
if (this.fixedDepositsAccountTemplate) {
|
if (this.fixedDepositsAccountTemplate) {
|
||||||
this.fixedDepositAccountSettingsForm.patchValue({
|
this.fixedDepositAccountSettingsForm.patchValue({
|
||||||
'lockinPeriodFrequency': this.fixedDepositsAccountTemplate.lockinPeriodFrequency,
|
'lockinPeriodFrequency': this.fixedDepositsAccountTemplate.lockinPeriodFrequency,
|
||||||
|
|||||||
+5
-1
@@ -1,6 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators} from '@angular/forms';
|
import { FormGroup, FormBuilder, Validators} from '@angular/forms';
|
||||||
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fixed Deposits Terms Step
|
* Fixed Deposits Terms Step
|
||||||
@@ -36,8 +37,10 @@ export class FixedDepositAccountTermsStepComponent implements OnInit, OnChanges
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {FormBuilder} formBuilder Form Builder
|
* @param {FormBuilder} formBuilder Form Builder
|
||||||
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder) {
|
constructor(private formBuilder: FormBuilder,
|
||||||
|
private settingsService: SettingsService) {
|
||||||
this.createFixedDepositsAccountTermsForm();
|
this.createFixedDepositsAccountTermsForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,6 +51,7 @@ export class FixedDepositAccountTermsStepComponent implements OnInit, OnChanges
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
if (this.fixedDepositsAccountTemplate.interestCompoundingPeriodType) {
|
if (this.fixedDepositsAccountTemplate.interestCompoundingPeriodType) {
|
||||||
this.fixedDepositAccountTermsForm.patchValue({
|
this.fixedDepositAccountTermsForm.patchValue({
|
||||||
'interestCompoundingPeriodType': this.fixedDepositsAccountTemplate.interestCompoundingPeriodType.id,
|
'interestCompoundingPeriodType': this.fixedDepositsAccountTemplate.interestCompoundingPeriodType.id,
|
||||||
|
|||||||
+1
@@ -49,6 +49,7 @@ export class ActivateFixedDepositsAccountComponent implements OnInit {
|
|||||||
* Creates the activate fixed deposits form.
|
* Creates the activate fixed deposits form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createActivateFixedDepositsAccountForm();
|
this.createActivateFixedDepositsAccountForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -59,6 +59,7 @@ export class AddChargeFixedDepositsAccountComponent implements OnInit {
|
|||||||
* Creates the Fixed Deposits Charge form.
|
* Creates the Fixed Deposits Charge form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createFixedDepositsChargeForm();
|
this.createFixedDepositsChargeForm();
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -48,6 +48,7 @@ export class ApproveFixedDepositsAccountComponent implements OnInit {
|
|||||||
* Creates the approve fixed deposits form.
|
* Creates the approve fixed deposits form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createApproveFixedDepositsAccountForm();
|
this.createApproveFixedDepositsAccountForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -60,6 +60,7 @@ export class CloseFixedDepositsAccountComponent implements OnInit {
|
|||||||
* Creates the close on maturity fd account form.
|
* Creates the close on maturity fd account form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createCloseOnMaturityAccountForm();
|
this.createCloseOnMaturityAccountForm();
|
||||||
this.addTransferDetails();
|
this.addTransferDetails();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -55,6 +55,7 @@ export class PrematureCloseFixedDepositsAccountComponent implements OnInit {
|
|||||||
* Creates the premature close fd account form.
|
* Creates the premature close fd account form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createPrematureCloseAccountForm();
|
this.createPrematureCloseAccountForm();
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -48,6 +48,7 @@ export class RejectFixedDepositsAccountComponent implements OnInit {
|
|||||||
* Creates the reject fixed deposits form.
|
* Creates the reject fixed deposits form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createRejectFixedDepositsAccountForm();
|
this.createRejectFixedDepositsAccountForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -48,6 +48,7 @@ export class WithdrawByClientFixedDepositsAccountComponent implements OnInit {
|
|||||||
* Creates the withdraw fixed deposits form.
|
* Creates the withdraw fixed deposits form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createWithdrawFixedDepositsAccountForm();
|
this.createWithdrawFixedDepositsAccountForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -48,6 +48,7 @@ export class ActivateRecurringDepositsAccountComponent implements OnInit {
|
|||||||
* Creates the activate recurring deposits form.
|
* Creates the activate recurring deposits form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createActivateRecurringDepositsAccountForm();
|
this.createActivateRecurringDepositsAccountForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -58,6 +58,7 @@ export class AddChargeRecurringDepositsAccountComponent implements OnInit {
|
|||||||
* Creates the Recurring Deposits Charge form.
|
* Creates the Recurring Deposits Charge form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createRecurringDepositsChargeForm();
|
this.createRecurringDepositsChargeForm();
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -48,6 +48,7 @@ export class ApproveRecurringDepositsAccountComponent implements OnInit {
|
|||||||
* Creates the approve recurring deposits form.
|
* Creates the approve recurring deposits form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createApproveRecurringDepositsAccountForm();
|
this.createApproveRecurringDepositsAccountForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -67,6 +67,7 @@ export class CloseRecurringDepositsAccountComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createcloseRecurringDepositForm();
|
this.createcloseRecurringDepositForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -63,6 +63,7 @@ export class DepositRecurringDepositsAccountComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createdepositRecurringDepositForm();
|
this.createdepositRecurringDepositForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -49,6 +49,7 @@ export class PrematureCloseRecurringDepositAccountComponent implements OnInit {
|
|||||||
* Creates the premature close recurring deposits form.
|
* Creates the premature close recurring deposits form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createprematureCloseRecurringDepositsAccountForm();
|
this.createprematureCloseRecurringDepositsAccountForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -49,6 +49,7 @@ export class RejectRecurringDepositsAccountComponent implements OnInit {
|
|||||||
* Creates the reject recurring deposits form.
|
* Creates the reject recurring deposits form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createRejectRecurringDepositsAccountForm();
|
this.createRejectRecurringDepositsAccountForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -39,7 +39,7 @@ export class WithdrawByClientRecurringDepositsAccountComponent implements OnInit
|
|||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private settingsService: SettingsService, ) {
|
private settingsService: SettingsService) {
|
||||||
this.accountId = this.route.parent.snapshot.params['recurringDepositAccountId'];
|
this.accountId = this.route.parent.snapshot.params['recurringDepositAccountId'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,6 +47,7 @@ export class WithdrawByClientRecurringDepositsAccountComponent implements OnInit
|
|||||||
* Creates the withdraw recurring deposits form.
|
* Creates the withdraw recurring deposits form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createWithdrawRecurringDepositsAccountForm();
|
this.createWithdrawRecurringDepositsAccountForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+5
-1
@@ -1,6 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
||||||
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
import { RecurringDepositsService } from '../../recurring-deposits.service';
|
import { RecurringDepositsService } from '../../recurring-deposits.service';
|
||||||
@@ -38,13 +39,16 @@ export class RecurringDepositsAccountDetailsStepComponent implements OnInit {
|
|||||||
* Sets recurring deposits account details form.
|
* Sets recurring deposits account details form.
|
||||||
* @param {FormBuilder} formBuilder Form Builder.
|
* @param {FormBuilder} formBuilder Form Builder.
|
||||||
* @param {RecurringDepositsService} recurringDepositsService Recurring Deposits Service.
|
* @param {RecurringDepositsService} recurringDepositsService Recurring Deposits Service.
|
||||||
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: FormBuilder,
|
||||||
private recurringDepositsService: RecurringDepositsService) {
|
private recurringDepositsService: RecurringDepositsService,
|
||||||
|
private settingsService: SettingsService) {
|
||||||
this.createRecurringDepositsAccountDetailsForm();
|
this.createRecurringDepositsAccountDetailsForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
if (this.recurringDepositsAccountTemplate) {
|
if (this.recurringDepositsAccountTemplate) {
|
||||||
this.productData = this.recurringDepositsAccountTemplate.productOptions;
|
this.productData = this.recurringDepositsAccountTemplate.productOptions;
|
||||||
|
|||||||
+5
-1
@@ -1,6 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms';
|
import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms';
|
||||||
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
|
|
||||||
@@ -34,8 +35,10 @@ export class RecurringDepositsAccountSettingsStepComponent implements OnInit, On
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {FormBuilder} formBuilder Form Builder
|
* @param {FormBuilder} formBuilder Form Builder
|
||||||
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder) {
|
constructor(private formBuilder: FormBuilder,
|
||||||
|
private settingsService: SettingsService) {
|
||||||
this.createRecurringDepositAccountSettingsForm();
|
this.createRecurringDepositAccountSettingsForm();
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
}
|
}
|
||||||
@@ -79,6 +82,7 @@ export class RecurringDepositsAccountSettingsStepComponent implements OnInit, On
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
if (this.recurringDepositsAccountTemplate) {
|
if (this.recurringDepositsAccountTemplate) {
|
||||||
this.recurringDepositAccountSettingsForm.patchValue({
|
this.recurringDepositAccountSettingsForm.patchValue({
|
||||||
'lockinPeriodFrequency': this.recurringDepositsAccountTemplate.lockinPeriodFrequency,
|
'lockinPeriodFrequency': this.recurringDepositsAccountTemplate.lockinPeriodFrequency,
|
||||||
|
|||||||
+5
-1
@@ -1,6 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms';
|
import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms';
|
||||||
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Recurring Deposits Terms Step
|
* Recurring Deposits Terms Step
|
||||||
@@ -32,8 +33,10 @@ export class RecurringDepositsAccountTermsStepComponent implements OnInit, OnCha
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {FormBuilder} formBuilder Form Builder
|
* @param {FormBuilder} formBuilder Form Builder
|
||||||
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder) {
|
constructor(private formBuilder: FormBuilder,
|
||||||
|
private settingsService: SettingsService) {
|
||||||
this.createRecurringDepositsAccountTermsForm();
|
this.createRecurringDepositsAccountTermsForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,6 +47,7 @@ export class RecurringDepositsAccountTermsStepComponent implements OnInit, OnCha
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
if (this.recurringDepositsAccountTemplate.interestCompoundingPeriodType) {
|
if (this.recurringDepositsAccountTemplate.interestCompoundingPeriodType) {
|
||||||
this.recurringDepositAccountTermsForm.patchValue({
|
this.recurringDepositAccountTermsForm.patchValue({
|
||||||
'interestCompoundingPeriodType': this.recurringDepositsAccountTemplate.interestCompoundingPeriodType.id,
|
'interestCompoundingPeriodType': this.recurringDepositsAccountTemplate.interestCompoundingPeriodType.id,
|
||||||
|
|||||||
+1
@@ -65,6 +65,7 @@ export class EditTransactionComponent implements OnInit {
|
|||||||
* Creates the Recurring Deposits account transaction form when component loads.
|
* Creates the Recurring Deposits account transaction form when component loads.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createEditTransactionForm();
|
this.createEditTransactionForm();
|
||||||
this.editTransactionForm.patchValue({
|
this.editTransactionForm.patchValue({
|
||||||
'transactionDate': this.transactionTemplateData.date && new Date(this.transactionTemplateData.date),
|
'transactionDate': this.transactionTemplateData.date && new Date(this.transactionTemplateData.date),
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ export class CreateGroupComponent implements OnInit, AfterViewInit {
|
|||||||
* Creates and sets the group form.
|
* Creates and sets the group form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createGroupForm();
|
this.createGroupForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ export class EditGroupComponent implements OnInit {
|
|||||||
* Creates and sets the edit group form.
|
* Creates and sets the edit group form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createEditGroupForm();
|
this.createEditGroupForm();
|
||||||
this.editGroupForm.patchValue({
|
this.editGroupForm.patchValue({
|
||||||
'name': this.groupData.name,
|
'name': this.groupData.name,
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export class ActivateGroupComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createActivateGroupForm();
|
this.createActivateGroupForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -59,6 +59,7 @@ export class AttachGroupMeetingComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createGroupMeetingForm();
|
this.createGroupMeetingForm();
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ export class CloseGroupComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createCloseGroupForm();
|
this.createCloseGroupForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -57,6 +57,7 @@ export class EditGroupMeetingScheduleComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createEditMeetingScheduleForm();
|
this.createEditMeetingScheduleForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -62,6 +62,7 @@ export class EditGroupMeetingComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createEditGroupMeetingForm();
|
this.createEditGroupMeetingForm();
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-1
@@ -1,6 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
||||||
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
import { LoansService } from '../../loans.service';
|
import { LoansService } from '../../loans.service';
|
||||||
@@ -43,13 +44,16 @@ export class LoansAccountDetailsStepComponent implements OnInit {
|
|||||||
* Sets loans account details form.
|
* Sets loans account details form.
|
||||||
* @param {FormBuilder} formBuilder Form Builder.
|
* @param {FormBuilder} formBuilder Form Builder.
|
||||||
* @param {LoansService} loansService Loans Service.
|
* @param {LoansService} loansService Loans Service.
|
||||||
|
* @param {SettingsService} settingsService SettingsService
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: FormBuilder,
|
||||||
private loansService: LoansService) {
|
private loansService: LoansService,
|
||||||
|
private settingsService: SettingsService) {
|
||||||
this.createLoansAccountDetailsForm();
|
this.createLoansAccountDetailsForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
if (this.loansAccountTemplate) {
|
if (this.loansAccountTemplate) {
|
||||||
this.productData = this.loansAccountTemplate.productOptions;
|
this.productData = this.loansAccountTemplate.productOptions;
|
||||||
|
|||||||
+5
-6
@@ -1,7 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators, FormControl, FormArray } from '@angular/forms';
|
import { FormGroup, FormBuilder, Validators, FormArray } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create Loans Account Terms Step
|
* Create Loans Account Terms Step
|
||||||
@@ -46,12 +46,10 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
|
|||||||
/**
|
/**
|
||||||
* Create Loans Account Terms Form
|
* Create Loans Account Terms Form
|
||||||
* @param formBuilder FormBuilder
|
* @param formBuilder FormBuilder
|
||||||
* @param route Route
|
* @param {SettingsService} settingsService SettingsService
|
||||||
* @param router Router
|
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: FormBuilder,
|
||||||
private route: ActivatedRoute,
|
private settingsService: SettingsService) {
|
||||||
private router: Router) {
|
|
||||||
this.createloansAccountTermsForm();
|
this.createloansAccountTermsForm();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -87,6 +85,7 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
if (this.loansAccountTemplate) {
|
if (this.loansAccountTemplate) {
|
||||||
if (this.loansAccountTemplate.loanProductId) {
|
if (this.loansAccountTemplate.loanProductId) {
|
||||||
this.loansAccountTermsForm.patchValue({
|
this.loansAccountTermsForm.patchValue({
|
||||||
|
|||||||
+1
@@ -67,6 +67,7 @@ export class AddLoanChargeComponent implements OnInit {
|
|||||||
* Creates the Loan Charge form.
|
* Creates the Loan Charge form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createLoanChargeForm();
|
this.createLoanChargeForm();
|
||||||
this.loanChargeForm.controls.chargeId.valueChanges.subscribe(chargeId => {
|
this.loanChargeForm.controls.chargeId.valueChanges.subscribe(chargeId => {
|
||||||
const chargeDetails = this.loanChargeOptions.find(option => {
|
const chargeDetails = this.loanChargeOptions.find(option => {
|
||||||
|
|||||||
+1
@@ -45,6 +45,7 @@ export class AssignLoanOfficerComponent implements OnInit {
|
|||||||
* Creates the assign officer form.
|
* Creates the assign officer form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createassignOfficerForm();
|
this.createassignOfficerForm();
|
||||||
this.loanOfficers = this.dataObject.loanOfficerOptions;
|
this.loanOfficers = this.dataObject.loanOfficerOptions;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -45,6 +45,7 @@ export class CloseAsRescheduledComponent implements OnInit {
|
|||||||
* Creates the close form.
|
* Creates the close form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createCloseForm();
|
this.createCloseForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -55,6 +55,7 @@ export class CreateGuarantorComponent implements OnInit, AfterViewInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createNewGuarantorForm();
|
this.createNewGuarantorForm();
|
||||||
this.setNewGuarantorDetailsForm();
|
this.setNewGuarantorDetailsForm();
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
|
|||||||
+1
@@ -43,6 +43,7 @@ export class DisburseLoanAccountComponent implements OnInit {
|
|||||||
private settingsService: SettingsService) { }
|
private settingsService: SettingsService) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.setDisbursementToSavingsForm();
|
this.setDisbursementToSavingsForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ export class DisburseComponent implements OnInit {
|
|||||||
* and initialize with the required values
|
* and initialize with the required values
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createDisbursementLoanForm();
|
this.createDisbursementLoanForm();
|
||||||
this.setDisbursementLoanDetails();
|
this.setDisbursementLoanDetails();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ export class ForeclosureComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createforeclosureForm();
|
this.createforeclosureForm();
|
||||||
this.onChanges();
|
this.onChanges();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -46,6 +46,7 @@ export class LoanRescheduleComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.codes = this.dataObject.rescheduleReasons;
|
this.codes = this.dataObject.rescheduleReasons;
|
||||||
this.setRescheduleLoanForm();
|
this.setRescheduleLoanForm();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -46,6 +46,7 @@ export class LoansAccountCloseComponent implements OnInit {
|
|||||||
* Creates the close form.
|
* Creates the close form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createCloseForm();
|
this.createCloseForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -53,6 +53,7 @@ export class MakeRepaymentComponent implements OnInit {
|
|||||||
* and initialize with the required values
|
* and initialize with the required values
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createRepaymentLoanForm();
|
this.createRepaymentLoanForm();
|
||||||
this.setRepaymentLoanDetails();
|
this.setRepaymentLoanDetails();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ export class PrepayLoanComponent implements OnInit {
|
|||||||
* and initialize with the required values
|
* and initialize with the required values
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createprepayLoanForm();
|
this.createprepayLoanForm();
|
||||||
this.setPrepayLoanDetails();
|
this.setPrepayLoanDetails();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -53,6 +53,7 @@ export class RecoveryRepaymentComponent implements OnInit {
|
|||||||
* and initialize with the required values
|
* and initialize with the required values
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createRecoveryRepaymentLoanForm();
|
this.createRecoveryRepaymentLoanForm();
|
||||||
this.setRecoveryRepaymentLoanDetails();
|
this.setRecoveryRepaymentLoanDetails();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ export class RejectLoanComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.setRejectLoanForm();
|
this.setRejectLoanForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -42,6 +42,7 @@ export class WaiveInterestComponent implements OnInit {
|
|||||||
private route: ActivatedRoute) { }
|
private route: ActivatedRoute) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.setLoanInterestForm();
|
this.setLoanInterestForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -49,6 +49,7 @@ export class WithdrawnByClientComponent implements OnInit {
|
|||||||
* and initialize with the required values
|
* and initialize with the required values
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createWithdrawnByClientLoanForm();
|
this.createWithdrawnByClientLoanForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -45,6 +45,7 @@ export class WriteOffPageComponent implements OnInit {
|
|||||||
private settingsService: SettingsService) { }
|
private settingsService: SettingsService) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.setWriteOffForm();
|
this.setWriteOffForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ export class EditTransactionComponent implements OnInit {
|
|||||||
* Creates the Loan account transaction form when component loads.
|
* Creates the Loan account transaction form when component loads.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createEditTransactionForm();
|
this.createEditTransactionForm();
|
||||||
this.editTransactionForm.patchValue({
|
this.editTransactionForm.patchValue({
|
||||||
'transactionDate': this.transactionTemplateData.date && new Date(this.transactionTemplateData.date),
|
'transactionDate': this.transactionTemplateData.date && new Date(this.transactionTemplateData.date),
|
||||||
|
|||||||
+5
-2
@@ -7,6 +7,7 @@ import { ActivatedRoute } from '@angular/router';
|
|||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
import { ReportsService } from 'app/reports/reports.service';
|
import { ReportsService } from 'app/reports/reports.service';
|
||||||
import { Dates } from 'app/core/utils/dates';
|
import { Dates } from 'app/core/utils/dates';
|
||||||
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Export Client Loans Transactions Component
|
* Export Client Loans Transactions Component
|
||||||
@@ -38,19 +39,21 @@ export class ExportTransactionsComponent implements OnInit {
|
|||||||
* @param {FormBuilder} formBuilder Form Builder
|
* @param {FormBuilder} formBuilder Form Builder
|
||||||
* @param {Dates} dateUtils Date Utils
|
* @param {Dates} dateUtils Date Utils
|
||||||
* @param {ActivatedRoute} route Activated Route
|
* @param {ActivatedRoute} route Activated Route
|
||||||
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private sanitizer: DomSanitizer,
|
constructor(private sanitizer: DomSanitizer,
|
||||||
private reportsService: ReportsService,
|
private reportsService: ReportsService,
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: FormBuilder,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute) {
|
private route: ActivatedRoute,
|
||||||
|
private settingsService: SettingsService) {
|
||||||
this.route.parent.parent.data.subscribe((data: { loanDetailsData: any }) => {
|
this.route.parent.parent.data.subscribe((data: { loanDetailsData: any }) => {
|
||||||
this.loansAccountId = data.loanDetailsData.accountNo;
|
this.loansAccountId = data.loanDetailsData.accountNo;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createTransactionsReportForm();
|
this.createTransactionsReportForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ export class BulkLoanReassignmnetComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.setBulkLoanForm();
|
this.setBulkLoanForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ export class CreateEmployeeComponent implements OnInit {
|
|||||||
* Creates the employee form.
|
* Creates the employee form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createEmployeeForm();
|
this.createEmployeeForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ export class EditEmployeeComponent implements OnInit {
|
|||||||
* Creates the edit employee form.
|
* Creates the edit employee form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createEditEmployeeForm();
|
this.createEditEmployeeForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ export class FundMappingComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createFundMappingForm();
|
this.createFundMappingForm();
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ export class EditHolidayComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.setEditForm();
|
this.setEditForm();
|
||||||
if (!this.isActiveHoliday) {
|
if (!this.isActiveHoliday) {
|
||||||
this.getReschedulingType();
|
this.getReschedulingType();
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ export class CreateOfficeComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createofficeForm();
|
this.createofficeForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ export class EditOfficeComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createOfficeForm();
|
this.createOfficeForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+7
-2
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnChanges, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, OnChanges, Input, Output, EventEmitter, OnInit } from '@angular/core';
|
||||||
import { Validators, FormGroup, FormControl } from '@angular/forms';
|
import { Validators, FormGroup, FormControl } from '@angular/forms';
|
||||||
|
|
||||||
/** Rxjs Imports */
|
/** Rxjs Imports */
|
||||||
@@ -22,7 +22,7 @@ import { Dates } from 'app/core/utils/dates';
|
|||||||
templateUrl: './edit-business-rule-parameters.component.html',
|
templateUrl: './edit-business-rule-parameters.component.html',
|
||||||
styleUrls: ['./edit-business-rule-parameters.component.scss']
|
styleUrls: ['./edit-business-rule-parameters.component.scss']
|
||||||
})
|
})
|
||||||
export class EditBusinessRuleParametersComponent implements OnChanges {
|
export class EditBusinessRuleParametersComponent implements OnInit, OnChanges {
|
||||||
|
|
||||||
/** Run Report Parameters Data */
|
/** Run Report Parameters Data */
|
||||||
@Input() paramData: any;
|
@Input() paramData: any;
|
||||||
@@ -44,11 +44,16 @@ export class EditBusinessRuleParametersComponent implements OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ReportsService} reportsService Reports Service
|
* @param {ReportsService} reportsService Reports Service
|
||||||
|
* @param {SettingsService} settingsService Settings Service.
|
||||||
*/
|
*/
|
||||||
constructor(private reportsService: ReportsService,
|
constructor(private reportsService: ReportsService,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private dateUtils: Dates) { }
|
private dateUtils: Dates) { }
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
|
}
|
||||||
|
|
||||||
ngOnChanges() {
|
ngOnChanges() {
|
||||||
if (this.paramData) {
|
if (this.paramData) {
|
||||||
this.ReportForm = new FormGroup({});
|
this.ReportForm = new FormGroup({});
|
||||||
|
|||||||
+5
-1
@@ -7,6 +7,7 @@ import { ReportsService } from 'app/reports/reports.service';
|
|||||||
|
|
||||||
/** Custom Models */
|
/** Custom Models */
|
||||||
import { ReportParameter } from 'app/reports/common-models/report-parameter.model';
|
import { ReportParameter } from 'app/reports/common-models/report-parameter.model';
|
||||||
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Edit SMS Campaign step.
|
* Edit SMS Campaign step.
|
||||||
@@ -46,9 +47,11 @@ export class EditSmsCampaignStepComponent implements OnInit {
|
|||||||
/**
|
/**
|
||||||
* @param {FormBuilder} formBuilder Form Builder
|
* @param {FormBuilder} formBuilder Form Builder
|
||||||
* @param {ReportsService} reportService Reports Service
|
* @param {ReportsService} reportService Reports Service
|
||||||
|
* @param {SettingsService} settingsService Settings Service.
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: FormBuilder,
|
||||||
private reportService: ReportsService) {
|
private reportService: ReportsService,
|
||||||
|
private settingsService: SettingsService) {
|
||||||
this.createSMSCampaignDetailsForm();
|
this.createSMSCampaignDetailsForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,6 +69,7 @@ export class EditSmsCampaignStepComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.triggerTypes = this.smsCampaignTemplate.triggerTypeOptions;
|
this.triggerTypes = this.smsCampaignTemplate.triggerTypeOptions;
|
||||||
this.smsProviders = this.smsCampaignTemplate.smsProviderOptions;
|
this.smsProviders = this.smsCampaignTemplate.smsProviderOptions;
|
||||||
this.businessRules = this.smsCampaignTemplate.businessRulesOptions;
|
this.businessRules = this.smsCampaignTemplate.businessRulesOptions;
|
||||||
|
|||||||
+6
-2
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnChanges, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, OnChanges, Input, Output, EventEmitter, OnInit } from '@angular/core';
|
||||||
import { Validators, FormGroup, FormControl } from '@angular/forms';
|
import { Validators, FormGroup, FormControl } from '@angular/forms';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -19,7 +19,7 @@ import { Dates } from 'app/core/utils/dates';
|
|||||||
templateUrl: './business-rule-parameters.component.html',
|
templateUrl: './business-rule-parameters.component.html',
|
||||||
styleUrls: ['./business-rule-parameters.component.scss']
|
styleUrls: ['./business-rule-parameters.component.scss']
|
||||||
})
|
})
|
||||||
export class BusinessRuleParametersComponent implements OnChanges {
|
export class BusinessRuleParametersComponent implements OnInit, OnChanges {
|
||||||
|
|
||||||
/** Run Report Parameters Data */
|
/** Run Report Parameters Data */
|
||||||
@Input() paramData: any;
|
@Input() paramData: any;
|
||||||
@@ -47,6 +47,10 @@ export class BusinessRuleParametersComponent implements OnChanges {
|
|||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private dateUtils: Dates) { }
|
private dateUtils: Dates) { }
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
|
}
|
||||||
|
|
||||||
ngOnChanges() {
|
ngOnChanges() {
|
||||||
if (this.paramData) {
|
if (this.paramData) {
|
||||||
this.ReportForm = new FormGroup({});
|
this.ReportForm = new FormGroup({});
|
||||||
|
|||||||
@@ -92,8 +92,8 @@ export class ViewCampaignComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createSMSForm();
|
this.createSMSForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -63,6 +63,7 @@ export class StandingInstructionsHistoryComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createInstructionForm();
|
this.createInstructionForm();
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ export class AllocateCashComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.setCashierForm();
|
this.setCashierForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ export class CreateCashierComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.setCreateCashierForm();
|
this.setCreateCashierForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ export class EditCashierComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.setEditChargeForm();
|
this.setEditChargeForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export class SettleCashComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.setCashierForm();
|
this.setCashierForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ export class CreateTellerComponent implements OnInit {
|
|||||||
* Creates the teller form.
|
* Creates the teller form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createTellerForm();
|
this.createTellerForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ export class EditTellerComponent implements OnInit {
|
|||||||
* Creates the Edit teller form.
|
* Creates the Edit teller form.
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.maxDate = this.settingsService.businessDate;
|
||||||
this.createEditTellerForm();
|
this.createEditTellerForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,8 +54,12 @@ export class CreateChargeComponent implements OnInit {
|
|||||||
private settingsService: SettingsService) {
|
private settingsService: SettingsService) {
|
||||||
this.route.data.subscribe((data: { chargesTemplate: any }) => {
|
this.route.data.subscribe((data: { chargesTemplate: any }) => {
|
||||||
this.chargesTemplateData = data.chargesTemplate;
|
this.chargesTemplateData = data.chargesTemplate;
|
||||||
this.incomeAndLiabilityAccountData = data.chargesTemplate.incomeOrLiabilityAccountOptions.incomeAccountOptions
|
if (data.chargesTemplate.incomeOrLiabilityAccountOptions.liabilityAccountOptions) {
|
||||||
.concat(data.chargesTemplate.incomeOrLiabilityAccountOptions.liabilityAccountOptions);
|
this.incomeAndLiabilityAccountData = data.chargesTemplate.incomeOrLiabilityAccountOptions.incomeAccountOptions
|
||||||
|
.concat(data.chargesTemplate.incomeOrLiabilityAccountOptions.liabilityAccountOptions);
|
||||||
|
} else {
|
||||||
|
this.incomeAndLiabilityAccountData = data.chargesTemplate.incomeOrLiabilityAccountOptions.incomeAccountOptions;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user