Skip to content

Commit

Permalink
feat(admin-ui): Display tax description in OrderDetail tax summary
Browse files Browse the repository at this point in the history
michaelbromley committed Dec 9, 2020
1 parent b69dd48 commit 843bec2
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -5337,7 +5337,7 @@ export type OrderDetailFragment = (
) }
)>, taxSummary: Array<(
{ __typename?: 'OrderTaxSummary' }
& Pick<OrderTaxSummary, 'taxBase' | 'taxRate' | 'taxTotal'>
& Pick<OrderTaxSummary, 'description' | 'taxBase' | 'taxRate' | 'taxTotal'>
)>, shippingAddress?: Maybe<(
{ __typename?: 'OrderAddress' }
& OrderAddressFragment
Original file line number Diff line number Diff line change
@@ -152,6 +152,7 @@ export const ORDER_DETAIL_FRAGMENT = gql`
}
}
taxSummary {
description
taxBase
taxRate
taxTotal
Original file line number Diff line number Diff line change
@@ -232,13 +232,15 @@ <h4>{{ 'order.tax-summary' | translate }}</h4>
<table class="table">
<thead>
<tr>
<th>{{ 'common.description' | translate }}</th>
<th>{{ 'order.tax-rate' | translate }}</th>
<th>{{ 'order.tax-base' | translate }}</th>
<th>{{ 'order.tax-total' | translate }}</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let row of order.taxSummary">
<td>{{ row.description }}</td>
<td>{{ row.taxRate / 100 | percent }}</td>
<td>{{ row.taxBase / 100 | currency: order.currencyCode }}</td>
<td>{{ row.taxTotal / 100 | currency: order.currencyCode }}</td>

0 comments on commit 843bec2

Please sign in to comment.