Done upto reconcile

Pending:
 stock movement
 trial balance
 unposted
This commit is contained in:
tanshu
2020-05-12 03:52:25 +05:30
parent 85d05392b8
commit 2b2430c5b2
16 changed files with 406 additions and 262 deletions

View File

@ -21,7 +21,6 @@ export class CashFlowService {
}
list(id: string, startDate: string, finishDate: string): Observable<CashFlow> {
const listUrl = (id === null) ? url : `${url}/${id}`;
const options = {params: new HttpParams()};
if (startDate !== null) {
options.params = options.params.set('s', startDate);
@ -29,6 +28,7 @@ export class CashFlowService {
if (finishDate !== null) {
options.params = options.params.set('f', finishDate);
}
const listUrl = (id === null) ? ( (startDate || finishDate) ? `${url}/data` : url) : `${url}/${id}`;
return <Observable<CashFlow>>this.http.get<CashFlow>(listUrl, options)
.pipe(
catchError(this.log.handleError(serviceName, 'list'))