feat(closing-entries): view closure component

Add view closure component to view accounting closure.
This commit is contained in:
Abhay Chawla
2018-08-04 23:03:39 +05:30
parent df3f9c7b8a
commit fcb8dce131
9 changed files with 166 additions and 5 deletions
@@ -0,0 +1,31 @@
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { AccountingService } from '../../accounting.service';
@Component({
selector: 'mifosx-view-closure',
templateUrl: './view-closure.component.html',
styleUrls: ['./view-closure.component.scss']
})
export class ViewClosureComponent implements OnInit {
accountingClosureId: number;
accountingClosure: any;
constructor(private accountingService: AccountingService,
private route: ActivatedRoute) { }
ngOnInit() {
this.accountingClosureId = Number(this.route.snapshot.paramMap.get('id'));
this.getAccountingClosure();
}
getAccountingClosure() {
this.accountingService.getAccountingClosure(this.accountingClosureId)
.subscribe((accountingClosure: any) => {
this.accountingClosure = accountingClosure;
});
}
}