Done upto reconcile
Pending: stock movement trial balance unposted
This commit is contained in:
1 parent
85d05392b8
commit
2b2430c5b2
16 files changed
+406
-262
No files matched your search
@@ -21,14 +21,9 @@ export class DaybookService {
|
||||
}
|
||||
|
||||
list(startDate: string, finishDate): Observable<Daybook> {
|
||||
const options = {params: new HttpParams()};
|
||||
if (startDate !== null) {
|
||||
options.params = options.params.set('s', startDate);
|
||||
}
|
||||
if (finishDate !== null) {
|
||||
options.params = options.params.set('f', finishDate);
|
||||
}
|
||||
return <Observable<Daybook>>this.http.get<Daybook>(url, options)
|
||||
startDate = startDate ? `/${startDate}` : '';
|
||||
finishDate = finishDate ? `/${finishDate}` : '';
|
||||
return <Observable<Daybook>>this.http.get<Daybook>(`${url}${startDate}${finishDate}`)
|
||||
.pipe(
|
||||
catchError(this.log.handleError(serviceName, 'list'))
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user