Skip to content

Commit

Permalink
fixing product attribute combinations StockQuantityHistory when copy …
Browse files Browse the repository at this point in the history
…a product with combinations nopSolutions#7202
  • Loading branch information
parshan2 committed May 26, 2024
1 parent 98adab9 commit 7033377
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Libraries/Nop.Services/Catalog/CopyProductService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ protected virtual async Task CopyAttributesMappingAsync(Product product, Product
}

//quantity change history
await _productService.AddStockQuantityHistoryEntryAsync(productCopy, combination.StockQuantity,
combination.StockQuantity,
message: string.Format(await _localizationService.GetResourceAsync("Admin.StockQuantityHistory.Messages.CopyProduct"), product.Id), combinationId: combination.Id);
await _productService.AddStockQuantityHistoryEntryAsync(productCopy, combinationCopy.StockQuantity,
combinationCopy.StockQuantity,
message: string.Format(await _localizationService.GetResourceAsync("Admin.StockQuantityHistory.Messages.CopyProduct"), product.Id), combinationId: combinationCopy.Id);
}
}

Expand Down

0 comments on commit 7033377

Please sign in to comment.