@@ -1,5 +1,5 @@
|
||||
/** Angular Imports */
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
||||
import { DatePipe } from '@angular/common';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
@@ -8,7 +8,7 @@ import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { SharesService } from 'app/shares/shares.service';
|
||||
|
||||
/**
|
||||
* App;y Shares Component
|
||||
* Apply Shares Component
|
||||
*/
|
||||
@Component({
|
||||
selector: 'mifosx-apply-shares',
|
||||
@@ -17,7 +17,6 @@ import { SharesService } from 'app/shares/shares.service';
|
||||
})
|
||||
export class ApplySharesComponent implements OnInit {
|
||||
|
||||
|
||||
/** Minimum date allowed. */
|
||||
minDate = new Date(2000, 0, 1);
|
||||
/** Maximum date allowed. */
|
||||
@@ -26,8 +25,6 @@ export class ApplySharesComponent implements OnInit {
|
||||
applySharesForm: FormGroup;
|
||||
/** Shares Account Id */
|
||||
accountId: any;
|
||||
/** Unit Price */
|
||||
unitPrice: any;
|
||||
|
||||
/**
|
||||
* @param {FormBuilder} formBuilder Form Builder
|
||||
@@ -81,7 +78,7 @@ export class ApplySharesComponent implements OnInit {
|
||||
});
|
||||
const data = {
|
||||
...this.applySharesForm.value,
|
||||
unitPrice: this.unitPrice,
|
||||
unitPrice: this.applySharesForm.get('unitPrice').value,
|
||||
dateFormat,
|
||||
locale
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user