Skip to content

Commit

Permalink
Merge branch 'release/3.413.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
vc-ci committed Sep 14, 2023
2 parents 6780f74 + f538201 commit 9aea930
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<!-- These properties will be shared for all projects -->
<PropertyGroup>
<VersionPrefix>3.412.0</VersionPrefix>
<VersionPrefix>3.413.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<VersionSuffix Condition=" '$(VersionSuffix)' != '' AND '$(BuildNumber)' != '' ">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="VirtoCommerce.CartModule.Core" Version="3.400.0" />
<PackageReference Include="VirtoCommerce.CartModule.Core" Version="3.403.0" />
<PackageReference Include="VirtoCommerce.CoreModule.Core" Version="3.400.0" />
<PackageReference Include="VirtoCommerce.CustomerModule.Core" Version="3.400.0" />
<PackageReference Include="VirtoCommerce.NotificationsModule.Core" Version="3.400.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected virtual CustomerOrder ConvertCartToOrder(ShoppingCart cart)
// Copy LineItems
if (cart.Items != null)
{
order.Items = ToOrderModel(cart.Items, cartLineItemsMap);
order.Items = ToOrderModel(cart.Items.Where(x => x.SelectedForCheckout).ToList(), cartLineItemsMap);
}

// Copy Discounts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,12 @@ protected virtual async Task EnsureThatAllOperationsHaveNumber(CustomerOrder ord
var numberTemplate = opType + "{0:yyMMdd}-{1:D5}";
if (store != null)
{
numberTemplate = store.Settings.GetSettingValue("Order." + objectTypeName + "NewNumberTemplate", numberTemplate);
var descriptor = new SettingDescriptor
{
Name = "Order." + objectTypeName + "NewNumberTemplate",
DefaultValue = numberTemplate,
};
numberTemplate = store.Settings.GetValue<string>(descriptor);
}

operation.Number = _uniqueNumberGenerator.GenerateNumber(numberTemplate);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,7 @@ public async Task<ActionResult<Shipment>> GetNewShipment(string id)
retVal.Status = "New";

var store = await _storeService.GetNoCloneAsync(order.StoreId, StoreResponseGroup.StoreInfo.ToString());
var numberTemplate = store.Settings.GetSettingValue(
ModuleConstants.Settings.General.OrderShipmentNewNumberTemplate.Name,
ModuleConstants.Settings.General.OrderShipmentNewNumberTemplate.DefaultValue);
var numberTemplate = store.Settings.GetValue<string>(ModuleConstants.Settings.General.OrderShipmentNewNumberTemplate);
retVal.Number = _uniqueNumberGenerator.GenerateNumber(numberTemplate.ToString());

return Ok(retVal);
Expand Down Expand Up @@ -453,9 +451,7 @@ public async Task<ActionResult<PaymentIn>> GetNewPayment(string id)
retVal.Status = retVal.PaymentStatus.ToString();

var store = await _storeService.GetNoCloneAsync(order.StoreId, StoreResponseGroup.StoreInfo.ToString());
var numberTemplate = store.Settings.GetSettingValue(
ModuleConstants.Settings.General.OrderPaymentInNewNumberTemplate.Name,
ModuleConstants.Settings.General.OrderPaymentInNewNumberTemplate.DefaultValue);
var numberTemplate = store.Settings.GetValue<string>(ModuleConstants.Settings.General.OrderPaymentInNewNumberTemplate);
retVal.Number = _uniqueNumberGenerator.GenerateNumber(numberTemplate.ToString());
return Ok(retVal);
}
Expand Down
4 changes: 2 additions & 2 deletions src/VirtoCommerce.OrdersModule.Web/module.manifest
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<module>
<id>VirtoCommerce.Orders</id>
<version>3.412.0</version>
<version>3.413.0</version>
<version-tag />
<platformVersion>3.413.0</platformVersion>
<dependencies>
<dependency id="VirtoCommerce.Cart" version="3.400.0" />
<dependency id="VirtoCommerce.Cart" version="3.403.0" />
<dependency id="VirtoCommerce.Catalog" version="3.401.0" />
<dependency id="VirtoCommerce.Core" version="3.400.0" />
<dependency id="VirtoCommerce.Customer" version="3.400.0" />
Expand Down

0 comments on commit 9aea930

Please sign in to comment.