Compare commits

..

No commits in common. "51a60b0d5376f8347d9413ddadd7c54e77d67aa8" and "fd7f2b340763197e2fd85c419659520e9bfd8471" have entirely different histories.

2 changed files with 4 additions and 10 deletions

View File

@ -595,7 +595,7 @@ Output: [{""product"":""szőlő"",""quantity"":50}]";
var products = await _productService.SearchProductsAsync(
keywords: parsed.Product,
pageIndex: 0,
pageSize: 50); // Get up to 20 matches
pageSize: 20); // Get up to 20 matches
if (!products.Any())
{

View File

@ -377,17 +377,11 @@ namespace Nop.Plugin.Misc.FruitBankPlugin.Controllers
await ctx.ShippingDocuments.InsertAsync(shippingDocument);
if(shippingDocument.ShippingItems != null)
{
foreach (var item in shippingDocument.ShippingItems)
{
var product = await ctx.Products.GetByIdAsync(item.ProductId);
if(product != null)
{
product.ProductCost = Convert.ToDecimal(item.UnitPriceOnDocument);
}
}
}
return await ctx.ShippingDocuments.GetByIdAsync(shippingDocument.Id, shippingDocument.Shipping != null || shippingDocument.Partner != null);
}