Done upto reconcile
Pending: stock movement trial balance unposted
This commit is contained in:
@ -21,14 +21,9 @@ export class PurchaseEntriesService {
|
||||
}
|
||||
|
||||
list(startDate: string, finishDate): Observable<PurchaseEntries> {
|
||||
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<PurchaseEntries>>this.http.get<PurchaseEntries>(url, options)
|
||||
startDate = startDate ? `/${startDate}` : '';
|
||||
finishDate = finishDate ? `/${finishDate}` : '';
|
||||
return <Observable<PurchaseEntries>>this.http.get<PurchaseEntries>(`${url}${startDate}${finishDate}`)
|
||||
.pipe(
|
||||
catchError(this.log.handleError(serviceName, 'list'))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user