Skip to content

Commit

Permalink
#7202 Fixing product attribute combinations stock quantity history wh…
Browse files Browse the repository at this point in the history
…en copy a product with combinations

(cherry picked from commit 6050d0c)
  • Loading branch information
parshan2 authored and skoshelev committed Jun 5, 2024
1 parent 0e7470b commit adca6bc
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 adca6bc

Please sign in to comment.