Skip to content

Commit

Permalink
Merge pull request #272 from EasyAbp/fix-wrong-payment-amount
Browse files Browse the repository at this point in the history
Fix wrong `PaymentAmount` values
  • Loading branch information
gdlcf88 authored Sep 9, 2023
2 parents e5be38a + bb56a15 commit 52a64ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>5.0.0-preview.3</Version>
<Version>5.0.0-preview.4</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ public virtual async Task HandleEventAsync(EntityCreatedEto<EShopPaymentEto> eve
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);
}
Expand Down

0 comments on commit 52a64ce

Please sign in to comment.