Merge branch '4.80' of https://git.aycode.com/Adam/Mango.Nop.Plugins into 4.80
This commit is contained in:
commit
4f9eb4b06e
|
|
@ -80,7 +80,7 @@ namespace Nop.Plugin.Misc.FruitBankPlugin.Controllers
|
||||||
{
|
{
|
||||||
_logger.Detail($"GetShippings invoked");
|
_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();
|
//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}");
|
_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)]
|
[SignalR(SignalRTags.UpdateShippingItem)]
|
||||||
|
|
|
||||||
|
|
@ -59,10 +59,10 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.AspNetCore.SignalR.Common" Version="9.0.8" />
|
<PackageReference Include="Microsoft.AspNetCore.SignalR.Common" Version="9.0.9" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.Json" Version="9.0.8" />
|
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.Json" Version="9.0.9" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson" Version="9.0.8" />
|
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson" Version="9.0.9" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.8" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.9" />
|
||||||
<PackageReference Include="SendGrid" Version="9.29.3" />
|
<PackageReference Include="SendGrid" Version="9.29.3" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue