This commit is contained in:
Loretta 2025-11-14 17:56:15 +01:00
parent f2e99f3050
commit d831ed5cee
1 changed files with 1 additions and 1 deletions

View File

@ -654,7 +654,7 @@ public class FruitBankDbContext : MgDbContextBase,
var product = await Products.GetByIdAsync(productId); var product = await Products.GetByIdAsync(productId);
await UpdateStockQuantityAndWeightAsync(product, quantityToChange, message, weightToChange); await UpdateStockQuantityAndWeightAsync(product, quantityToChange, message, weightToChange);
} }
public async Task UpdateStockQuantityAndWeightAsync(ProductDto productDto, int quantityToChange, string message, double weightToChange = 0) public async Task UpdateStockQuantityAndWeightAsync(ProductDto productDto, int quantityToChange, string message, double weightToChange = 0)
{ {
if (quantityToChange == 0 && weightToChange == 0) return; if (quantityToChange == 0 && weightToChange == 0) return;