We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ebddf5 commit e92f74aCopy full SHA for e92f74a
WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/refunds/RefundsUiModels.kt
@@ -63,12 +63,12 @@ data class ShippingRefundListItem(
63
override val subtotal: BigDecimal
64
get() = shippingLine.total
65
override val taxes: List<TaxRefund>
66
- get() = listOf(
+ get() = shippingLine.taxes.map {
67
TaxRefund(
68
- rateId = 0L,
69
- tax = shippingLine.totalTax
+ rateId = it.rateId,
+ tax = it.taxAmount
70
)
71
- )
+ }
72
}
73
74
@Parcelize
@@ -82,10 +82,10 @@ data class FeeRefundListItem(
82
83
get() = feeLine.total
84
85
+ get() = feeLine.taxes.map {
86
87
88
- tax = feeLine.totalTax
89
90
91
0 commit comments