|
|
@ -37,7 +37,7 @@ namespace EasyAbp.EShop.Orders.Orders |
|
|
_productSkuDescriptionProvider = productSkuDescriptionProvider; |
|
|
_productSkuDescriptionProvider = productSkuDescriptionProvider; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public virtual async Task<Order> GenerateAsync(CreateOrderDto input, Dictionary<Guid, ProductDto> productDict) |
|
|
public virtual async Task<Order> GenerateAsync(CreateOrderDto input, Dictionary<Guid, ProductDto> productDict, Dictionary<string, object> orderExtraProperties) |
|
|
{ |
|
|
{ |
|
|
var orderLines = new List<OrderLine>(); |
|
|
var orderLines = new List<OrderLine>(); |
|
|
|
|
|
|
|
|
@ -60,6 +60,11 @@ namespace EasyAbp.EShop.Orders.Orders |
|
|
refundedAmount: 0, |
|
|
refundedAmount: 0, |
|
|
customerRemark: input.CustomerRemark); |
|
|
customerRemark: input.CustomerRemark); |
|
|
|
|
|
|
|
|
|
|
|
foreach (var orderExtraProperty in orderExtraProperties) |
|
|
|
|
|
{ |
|
|
|
|
|
order.ExtraProperties.Add(orderExtraProperty.Key, orderExtraProperty.Value); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
order.SetOrderLines(orderLines); |
|
|
order.SetOrderLines(orderLines); |
|
|
|
|
|
|
|
|
order.SetOrderNumber(await _orderNumberGenerator.CreateAsync(order)); |
|
|
order.SetOrderNumber(await _orderNumberGenerator.CreateAsync(order)); |
|
|
|