Fix: Login deleting old clients was conflicting with login history
Chore: Moved to angular linting using the recommended plugins / settings
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { CashFlowResolver } from './cash-flow-resolver.service';
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { CashFlowService } from './cash-flow.service';
|
||||
|
||||
|
||||
@ -36,10 +36,8 @@ export class CashFlowService {
|
||||
} else {
|
||||
listUrl = url;
|
||||
}
|
||||
return <Observable<CashFlow>>(
|
||||
this.http
|
||||
.get<CashFlow>(listUrl, options)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'list')))
|
||||
);
|
||||
return this.http
|
||||
.get<CashFlow>(listUrl, options)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'list'))) as Observable<CashFlow>;
|
||||
}
|
||||
}
|
||||
|
||||
@ -12,6 +12,18 @@ export class CashFlow {
|
||||
|
||||
footer?: CashFlowItem[];
|
||||
|
||||
public constructor(init?: Partial<CashFlow>) {
|
||||
this.startDate = '';
|
||||
this.finishDate = '';
|
||||
this.body = {
|
||||
operating: [],
|
||||
investing: [],
|
||||
financing: [],
|
||||
details: [],
|
||||
};
|
||||
Object.assign(this, init);
|
||||
}
|
||||
|
||||
static Data(value: CashFlow): CashFlowItem[] {
|
||||
const d: CashFlowItem[] = [];
|
||||
if (value.body.operating?.length) {
|
||||
@ -31,16 +43,4 @@ export class CashFlow {
|
||||
}
|
||||
return d;
|
||||
}
|
||||
|
||||
public constructor(init?: Partial<CashFlow>) {
|
||||
this.startDate = '';
|
||||
this.finishDate = '';
|
||||
this.body = {
|
||||
operating: [],
|
||||
investing: [],
|
||||
financing: [],
|
||||
details: [],
|
||||
};
|
||||
Object.assign(this, init);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user