Browse Source

Fix wrong `PaymentAmount` values

pull/272/head
gdlcf88 2 years ago
parent
commit
fc1b14a33c
  1. 3
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain/EasyAbp/EShop/Orders/Orders/PaymentCreatedEventHandler.cs

3
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain/EasyAbp/EShop/Orders/Orders/PaymentCreatedEventHandler.cs

@ -53,8 +53,7 @@ namespace EasyAbp.EShop.Orders.Orders
throw new InvalidPaymentException(eventData.Entity.Id, orderId);
}
await order.StartPaymentAsync(
eventData.Entity.Id, eventData.Entity.ActualPaymentAmount, _moneyDistributor);
await order.StartPaymentAsync(eventData.Entity.Id, item.ActualPaymentAmount, _moneyDistributor);
await _orderRepository.UpdateAsync(order, true);
}

Loading…
Cancel
Save