Inventaire

This commit is contained in:
FyloZ 2021-03-20 13:56:49 -04:00
parent 83d8b30207
commit 0abef6ab05
1 changed files with 4 additions and 0 deletions

View File

@ -64,6 +64,10 @@ export class RecipeService {
return this.api.put<void>('/recipe/public', body)
}
delete(id: number): Observable<void> {
return this.api.delete<void>(`/recipe/${id}`)
}
deductMixFromQuantities(mixId: number, originalQuantity: number, currentQuantity: number): Observable<MaterialQuantity[]> {
return this.deductMix(mixId, currentQuantity / originalQuantity)
}