Compare commits
No commits in common. "51a60b0d5376f8347d9413ddadd7c54e77d67aa8" and "fd7f2b340763197e2fd85c419659520e9bfd8471" have entirely different histories.
51a60b0d53
...
fd7f2b3407
|
|
@ -595,7 +595,7 @@ Output: [{""product"":""szőlő"",""quantity"":50}]";
|
||||||
var products = await _productService.SearchProductsAsync(
|
var products = await _productService.SearchProductsAsync(
|
||||||
keywords: parsed.Product,
|
keywords: parsed.Product,
|
||||||
pageIndex: 0,
|
pageIndex: 0,
|
||||||
pageSize: 50); // Get up to 20 matches
|
pageSize: 20); // Get up to 20 matches
|
||||||
|
|
||||||
if (!products.Any())
|
if (!products.Any())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -377,16 +377,10 @@ namespace Nop.Plugin.Misc.FruitBankPlugin.Controllers
|
||||||
|
|
||||||
await ctx.ShippingDocuments.InsertAsync(shippingDocument);
|
await ctx.ShippingDocuments.InsertAsync(shippingDocument);
|
||||||
|
|
||||||
if(shippingDocument.ShippingItems != null)
|
foreach (var item in shippingDocument.ShippingItems)
|
||||||
{
|
{
|
||||||
foreach (var item in shippingDocument.ShippingItems)
|
var product = await ctx.Products.GetByIdAsync(item.ProductId);
|
||||||
{
|
product.ProductCost = Convert.ToDecimal(item.UnitPriceOnDocument);
|
||||||
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);
|
return await ctx.ShippingDocuments.GetByIdAsync(shippingDocument.Id, shippingDocument.Shipping != null || shippingDocument.Partner != null);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue