Commit 9da44f87 authored by gdlcf88's avatar gdlcf88

Fix ReducedInventoryAfterPlacingTime

parent a74105a1
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.1.3</Version>
<Version>0.1.4</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
......
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.1.3</Version>
<Version>0.1.4</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
......
......@@ -41,7 +41,7 @@ namespace EasyAbp.EShop.Orders.Orders
return;
}
order.SetReducedInventoryAfterPaymentTime(_clock.Now);
order.SetReducedInventoryAfterPlacingTime(_clock.Now);
await _orderRepository.UpdateAsync(order, true);
}
......
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.1.3</Version>
<Version>0.1.4</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>
......
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.1.3</Version>
<Version>0.1.4</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
......
......@@ -40,6 +40,11 @@ namespace EasyAbp.EShop.Payments.Payments
return false;
}
if (!order.ReducedInventoryAfterPlacingTime.HasValue)
{
return false;
}
var inputStoreIdString = inputExtraProperties.GetOrDefault("StoreId") as string;
if (order.StoreId.ToString() != inputStoreIdString)
......
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.1.3</Version>
<Version>0.1.4</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
......
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.1.3</Version>
<Version>0.1.4</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment