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:
@@ -64,9 +64,7 @@ export class ProductService {
|
||||
}
|
||||
return this.http
|
||||
.get<ProductSku[]>(`${url}/q-product`, options)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'autocomplete'))) as Observable<
|
||||
ProductSku[]
|
||||
>;
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'autocomplete'))) as Observable<ProductSku[]>;
|
||||
}
|
||||
|
||||
autocompleteSku(
|
||||
@@ -86,8 +84,6 @@ export class ProductService {
|
||||
}
|
||||
return this.http
|
||||
.get<ProductSku[]>(`${url}/q-sku`, options)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'autocomplete'))) as Observable<
|
||||
ProductSku[]
|
||||
>;
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'autocomplete'))) as Observable<ProductSku[]>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user