Skip to content

Commit

Permalink
fix(admin-ui): Correctly refund shipping amount when refunding an order
Browse files Browse the repository at this point in the history
Fixes #989
  • Loading branch information
michaelbromley committed Jul 16, 2021
1 parent 8d23966 commit 42ef9bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<input type="checkbox" clrCheckbox [(ngModel)]="refundShipping" [disabled]="!isRefunding()" />
<label>
{{ 'order.refund-shipping' | translate }} ({{
order.shipping | localeCurrency: order.currencyCode
order.shippingWithTax | localeCurrency: order.currencyCode
}})
</label>
</clr-checkbox-wrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class RefundOrderDialogComponent
refund: {
lines: refundLines,
reason: this.reason,
shipping: this.refundShipping ? this.order.shipping : 0,
shipping: this.refundShipping ? this.order.shippingWithTax : 0,
adjustment: this.adjustment,
paymentId: payment.id,
},
Expand Down

0 comments on commit 42ef9bf

Please sign in to comment.