|
|
@@ -48,7 +48,7 @@
|
|
|
<ng-template [ngIf]="entry.data.to !== 'Cancelled' && entry.data.to !== 'Delivered'">
|
|
|
{{
|
|
|
'order.history-order-transition'
|
|
|
- | translate: { from: entry.data.from, to: entry.data.to }
|
|
|
+ | translate : { from: entry.data.from, to: entry.data.to }
|
|
|
}}
|
|
|
</ng-template>
|
|
|
</ng-container>
|
|
|
@@ -59,7 +59,7 @@
|
|
|
<ng-container *ngIf="getModification(entry.data.modificationId) as modification">
|
|
|
{{ 'order.modify-order-price-difference' | translate }}:
|
|
|
<strong>{{
|
|
|
- modification.priceChange | localeCurrency: order.currencyCode
|
|
|
+ modification.priceChange | localeCurrency : order.currencyCode
|
|
|
}}</strong>
|
|
|
<vdr-chip colorType="success" *ngIf="modification.isSettled">{{
|
|
|
'order.modification-settled' | translate
|
|
|
@@ -80,13 +80,17 @@
|
|
|
<div class="title">
|
|
|
{{ 'order.history-payment-settled' | translate }}
|
|
|
</div>
|
|
|
- {{ 'order.transaction-id' | translate }}: {{ getPayment(entry)?.transactionId }}
|
|
|
- <vdr-history-entry-detail *ngIf="getPayment(entry) as payment">
|
|
|
- <vdr-payment-detail
|
|
|
- [payment]="payment"
|
|
|
- [currencyCode]="order.currencyCode"
|
|
|
- ></vdr-payment-detail>
|
|
|
- </vdr-history-entry-detail>
|
|
|
+ <div class="flex items-center">
|
|
|
+ <vdr-chip *ngIf="getPayment(entry) as payment" class="mr-1">{{
|
|
|
+ payment.amount | localeCurrency : order.currencyCode
|
|
|
+ }}</vdr-chip>
|
|
|
+ <vdr-history-entry-detail *ngIf="getPayment(entry) as payment">
|
|
|
+ <vdr-payment-detail
|
|
|
+ [payment]="payment"
|
|
|
+ [currencyCode]="order.currencyCode"
|
|
|
+ ></vdr-payment-detail>
|
|
|
+ </vdr-history-entry-detail>
|
|
|
+ </div>
|
|
|
</ng-container>
|
|
|
<ng-template #regularPaymentTransition>
|
|
|
{{
|
|
|
@@ -101,18 +105,42 @@
|
|
|
</ng-template>
|
|
|
</ng-container>
|
|
|
<ng-container *ngSwitchCase="type.ORDER_REFUND_TRANSITION">
|
|
|
- {{
|
|
|
- 'order.history-refund-transition'
|
|
|
- | translate
|
|
|
- : { from: entry.data.from, to: entry.data.to, id: entry.data.refundId }
|
|
|
- }}
|
|
|
+ <ng-container *ngIf="entry.data.to === 'Settled'; else regularRefundTransition">
|
|
|
+ <ng-container *ngIf="getRefund(entry) as refund">
|
|
|
+ <div class="title">{{ 'order.refund' | translate }} #{{ refund.id }}</div>
|
|
|
+ <div class="flex items-center">
|
|
|
+ <vdr-chip colorType="warning" class="mr-1">{{
|
|
|
+ refund.total | localeCurrency : order.currencyCode
|
|
|
+ }}</vdr-chip>
|
|
|
+ <vdr-history-entry-detail>
|
|
|
+ <vdr-labeled-data [label]="'order.cancellation-reason' | translate">
|
|
|
+ {{ entry.data.reason }}
|
|
|
+ </vdr-labeled-data>
|
|
|
+ <vdr-labeled-data [label]="'order.contents' | translate">
|
|
|
+ <vdr-simple-item-list [items]="getCancelledItems(refund.lines)"></vdr-simple-item-list>
|
|
|
+ </vdr-labeled-data>
|
|
|
+ </vdr-history-entry-detail>
|
|
|
+ </div>
|
|
|
+ </ng-container>
|
|
|
+ </ng-container>
|
|
|
+ <ng-template #regularRefundTransition>
|
|
|
+ {{
|
|
|
+ 'order.history-refund-transition'
|
|
|
+ | translate
|
|
|
+ : {
|
|
|
+ from: entry.data.from,
|
|
|
+ to: entry.data.to,
|
|
|
+ id: entry.data.refundId
|
|
|
+ }
|
|
|
+ }}
|
|
|
+ </ng-template>
|
|
|
</ng-container>
|
|
|
<ng-container *ngSwitchCase="type.ORDER_CANCELLATION">
|
|
|
{{
|
|
|
'order.history-items-cancelled'
|
|
|
- | translate: { count: getCancelledQuantity(entry) }
|
|
|
+ | translate : { count: getCancelledQuantity(entry) }
|
|
|
}}
|
|
|
- <vdr-history-entry-detail *ngIf="getCancelledItems(entry) as items">
|
|
|
+ <vdr-history-entry-detail *ngIf="getCancelledItems(entry.data.lines) as items">
|
|
|
<vdr-labeled-data [label]="'order.cancellation-reason' | translate">
|
|
|
{{ entry.data.reason }}
|
|
|
</vdr-labeled-data>
|
|
|
@@ -149,7 +177,7 @@
|
|
|
<ng-container *ngIf="entry.data.to !== 'Delivered' && entry.data.to !== 'Shipped'">
|
|
|
{{
|
|
|
'order.history-fulfillment-transition'
|
|
|
- | translate: { from: entry.data.from, to: entry.data.to }
|
|
|
+ | translate : { from: entry.data.from, to: entry.data.to }
|
|
|
}}
|
|
|
</ng-container>
|
|
|
<vdr-history-entry-detail *ngIf="getFulfillment(entry) as fulfillment">
|
|
|
@@ -172,8 +200,8 @@
|
|
|
</div>
|
|
|
<div class="flex-spacer"></div>
|
|
|
<vdr-dropdown>
|
|
|
- <button class="icon-button" vdrDropdownTrigger>
|
|
|
- <clr-icon shape="ellipsis-vertical"></clr-icon>
|
|
|
+ <button class="button-small ml-1" vdrDropdownTrigger>
|
|
|
+ <clr-icon shape="ellipsis-vertical" size="12"></clr-icon>
|
|
|
</button>
|
|
|
<vdr-dropdown-menu vdrPosition="bottom-right">
|
|
|
<button
|