feat: shares account actions (redeem-shares) (#904)

Fixes: #903
This commit is contained in:
Karan Takalkar
2020-06-24 15:31:01 +05:30
committed by GitHub
parent 4b36a60517
commit 9d64300137
9 changed files with 177 additions and 9 deletions
@@ -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
};