Chore: Reformatted everthing
Fix: Product ledger was not totalling. This is because for some reason, pydantic was sending the data as string when the field was nullable
This commit is contained in:
@@ -40,17 +40,13 @@ export class ClosingStockService {
|
||||
const options = { params: new HttpParams().set('d', costCentre) };
|
||||
return this.http
|
||||
.post<ClosingStock>(`${url}/${date}`, {}, options)
|
||||
.pipe(
|
||||
catchError(this.log.handleError(serviceName, 'Post Voucher')),
|
||||
) as Observable<ClosingStock>;
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'Post Voucher'))) as Observable<ClosingStock>;
|
||||
}
|
||||
|
||||
delete(date: string, costCentre: string): Observable<ClosingStock> {
|
||||
const options = { params: new HttpParams().set('d', costCentre) };
|
||||
return this.http
|
||||
.delete<ClosingStock>(`${url}/${date}`, options)
|
||||
.pipe(
|
||||
catchError(this.log.handleError(serviceName, 'Delete Voucher')),
|
||||
) as Observable<ClosingStock>;
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'Delete Voucher'))) as Observable<ClosingStock>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user