This commit is contained in:
Adam 2025-09-20 11:01:20 +02:00
commit 4f9eb4b06e
2 changed files with 9 additions and 6 deletions

View File

@ -80,7 +80,7 @@ namespace Nop.Plugin.Misc.FruitBankPlugin.Controllers
{
_logger.Detail($"GetShippings invoked");
return await ctx.Shippings.GetAll(false).ToListAsync();
return await ctx.Shippings.GetAll(true).ToListAsync();
//return await ctx.Shippings.Table.LoadWith(sd => sd.ShippingDocuments).ThenLoad(si => si.ShippingItems).ToListAsync();
}
@ -124,7 +124,10 @@ namespace Nop.Plugin.Misc.FruitBankPlugin.Controllers
{
_logger.Detail($"GetShippingItemById invoked; id: {id}");
return await ctx.ShippingItems.GetByIdAsync(id);
var shippingItem = await ctx.ShippingItems.GetByIdAsync(id);
if (shippingItem.NetWeight <= 0) _logger.Error($"shippingItem.NetWeight == 0");
return shippingItem;
}
[SignalR(SignalRTags.UpdateShippingItem)]

View File

@ -59,10 +59,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SignalR.Common" Version="9.0.8" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.Json" Version="9.0.8" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson" Version="9.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.8" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Common" Version="9.0.9" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.Json" Version="9.0.9" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson" Version="9.0.9" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.9" />
<PackageReference Include="SendGrid" Version="9.29.3" />
</ItemGroup>