Feature: Added product Stock Keeping Units to prevent duplicate products. A lot of refactoring because of this.

Removed: Reset Stock as it was never used and don't think it is even needed with this new batch system.
Fix: Incentive update was not working
This commit is contained in:
tanshu committed 2021-09-27 14:22:31 +05:30
1 parent 4f907e965b
commit 1647d356c9
71 files changed
+1272 -904

No files matched your search

@@ -41,18 +41,6 @@ export class SettingsService {
>;
}
resetStock(
resetDate: string,
stockDate: string,
product: Product,
quantity: number,
): Observable<boolean> {
const url = '/api/reset-stock';
return this.http
.post<boolean>(`${url}/${product.id}`, { stockDate, resetDate, quantity })
.pipe(catchError(this.log.handleError(serviceName, 'resetStock'))) as Observable<boolean>;
}
rebaseDatabase(date: string): Observable<Record<string, never>> {
const url = '/api/rebase';
return this.http