-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement recurring order detail information
- Loading branch information
1 parent
77a171a
commit 6bfd560
Showing
8 changed files
with
214 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
144 changes: 143 additions & 1 deletion
144
src/app/pages/account-recurring-order/account-recurring-order-page.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,145 @@ | ||
<h1>Recurring Order Details</h1> | ||
<h1>{{ 'account.recurring_order.heading' | translate }}</h1> | ||
|
||
<p> | ||
{{ 'account.recurring_order.subtitle' | translate }} | ||
</p> | ||
|
||
<div *ngIf="recurringOrder$ | async as recurringOrder" class="section" data-testing-id="rec-order-summary-info"> | ||
<!-- Order Summary Info--> | ||
<div class="row"> | ||
<div class="col-12 col-sm-6"> | ||
<dl class="row dl-horizontal dl-separator"> | ||
<dt class="col-6">{{ 'account.recurring_order.details.order_number.label' | translate }}</dt> | ||
<dd class="col-6" data-testing-id="rec-order-number">{{ recurringOrder.number }}</dd> | ||
</dl> | ||
|
||
<dl class="row dl-horizontal dl-separator"> | ||
<dt class="col-6">{{ 'account.recurring_order.details.requisition_number.label' | translate }}</dt> | ||
<dd class="col-6">{{ recurringOrder.number }}</dd> | ||
</dl> | ||
|
||
<dl class="row dl-horizontal dl-separator"> | ||
<dt class="col-6">{{ 'account.recurring_order.details.creation_date.label' | translate }}</dt> | ||
<dd class="col-6">{{ recurringOrder.creationDate | ishDate }}</dd> | ||
</dl> | ||
|
||
<dl class="row dl-horizontal dl-separator"> | ||
<dt class="col-6">{{ 'account.recurring_order.details.last_order_date.label' | translate }}</dt> | ||
<dd class="col-6"> | ||
{{ recurringOrder.lastOrderDate ? (recurringOrder.lastOrderDate | ishDate) : '-' }} | ||
</dd> | ||
</dl> | ||
|
||
<dl class="row dl-horizontal dl-separator"> | ||
<dt class="col-6">{{ 'account.recurring_order.details.next_order_date.label' | translate }}</dt> | ||
<dd class="col-6"> | ||
{{ recurringOrder.nextOrderDate ? (recurringOrder.nextOrderDate | ishDate) : '-' }} | ||
</dd> | ||
</dl> | ||
|
||
<dl class="row dl-horizontal dl-separator"> | ||
<dt class="col-6">{{ 'account.recurring_order.details.status.label' | translate }}</dt> | ||
<dd class="col-6"> | ||
<span *ngIf="recurringOrder.expired; else switch">{{ 'account.recurring_order.details.expired.text' }}</span> | ||
<ng-template #switch | ||
><ish-switch | ||
id="{{ recurringOrder.id }}" | ||
[active]="recurringOrder.active" | ||
(switchActiveStatus)="switchActiveStatus($event)" | ||
/></ng-template> | ||
</dd> | ||
</dl> | ||
</div> | ||
<div class="col-12 col-sm-6"> | ||
<dl class="row dl-horizontal dl-separator"> | ||
<dt class="col-6">{{ 'account.recurring_order.details.order_count.label' | translate }}</dt> | ||
<dd class="col-6">{{ recurringOrder.orderCount }}</dd> | ||
</dl> | ||
|
||
<dl class="row dl-horizontal dl-separator"> | ||
<dt class="col-6">{{ 'account.recurring_order.details.last_placed_orders.label' | translate }}</dt> | ||
<dd class="col-6"></dd> | ||
</dl> | ||
</div> | ||
</div> | ||
|
||
<div class="row d-flex"> | ||
<!-- Buyer--> | ||
<ish-info-box heading="account.recurring_order.details.buyer_info.heading" class="infobox-wrapper col-md-6"> | ||
<ish-basket-buyer [object]="recurringOrder" /> | ||
</ish-info-box> | ||
<!-- Additional Information --> | ||
<ish-info-box heading="account.recurring_order.details.additional_info.heading" class="infobox-wrapper col-md-6"> | ||
<dl class="row dl-horizontal dl-separator"> | ||
<dt class="col-6">{{ 'account.recurring_order.details.cost_center.label' | translate }}</dt> | ||
<dd class="col-6">{{ recurringOrder.costCenter }}</dd> | ||
</dl> | ||
<dl class="row dl-horizontal dl-separator mb-0"> | ||
<dt class="col-6">{{ 'account.recurring_order.details.project_number.label' | translate }}</dt> | ||
<dd class="col-6"></dd> | ||
</dl> | ||
<dl class="row dl-horizontal dl-separator"> | ||
<dt class="col-6">{{ 'account.recurring_order.details.basket_number.label' | translate }}</dt> | ||
<dd class="col-6"></dd> | ||
</dl> | ||
<dl class="row dl-horizontal dl-separator mb-0"> | ||
<dt class="col-6">{{ 'account.recurring_order.details.order_frequency.label' | translate }}</dt> | ||
<dd class="col-6">{{ recurringOrder.recurrence.interval | ishFrequency }}</dd> | ||
</dl> | ||
<dl class="row dl-horizontal dl-separator mb-0"> | ||
<dt class="col-6">{{ 'account.recurring_order.details.start_date.label' | translate }}</dt> | ||
<dd class="col-6"> | ||
{{ recurringOrder.recurrence.startDate }} | ||
</dd> | ||
</dl> | ||
<dl class="row dl-horizontal dl-separator"> | ||
<dt class="col-6">{{ 'account.recurring_order.details.end_date.label' | translate }}</dt> | ||
<dd class="col-6">{{ recurringOrder.lastOrderDate ? (recurringOrder.lastOrderDate | ishDate) : '-' }}</dd> | ||
</dl> | ||
</ish-info-box> | ||
</div> | ||
|
||
<div class="row d-flex"> | ||
<!-- Invoice Address --> | ||
<ish-info-box heading="account.recurring_order.details.billing_address.heading" class="infobox-wrapper col-md-6"> | ||
<ish-address [address]="recurringOrder.invoiceToAddress" /> | ||
</ish-info-box> | ||
<!-- Shipping Address --> | ||
<ish-info-box heading="account.recurring_order.details.shipping_address.heading" class="infobox-wrapper col-md-6"> | ||
<ish-address [address]="recurringOrder.commonShipToAddress" /> | ||
</ish-info-box> | ||
</div> | ||
|
||
<div class="row d-flex"> | ||
<!-- Shipping Method --> | ||
<ish-info-box heading="account.recurring_order.details.shipping_method.heading" class="infobox-wrapper col-md-6"> | ||
<ish-basket-shipping-method [data]="recurringOrder" /> | ||
</ish-info-box> | ||
<!-- Payment --> | ||
<ish-info-box heading="account.recurring_order.details.payment_method.heading" class="infobox-wrapper col-md-6"> | ||
<ng-container *ngIf="recurringOrder.payment"> | ||
<div class="float-right"> | ||
<p class="badge badge-info">{{ recurringOrder.payment.status }}</p> | ||
</div> | ||
<p> | ||
{{ recurringOrder.payment.displayName }}<br />{{ recurringOrder.payment.paymentInstrument.accountIdentifier }} | ||
<ng-container | ||
*ngIf="!recurringOrder.payment.displayName && !recurringOrder.payment.paymentInstrument.accountIdentifier" | ||
> | ||
{{ recurringOrder.payment.paymentInstrument }} | ||
</ng-container> | ||
</p> | ||
</ng-container> | ||
</ish-info-box> | ||
</div> | ||
|
||
<!-- Line Items | ||
<ish-line-item-list | ||
*ngIf="recurringOrder.lineItems?.length > 0" | ||
[lineItems]="recurringOrder.lineItems" | ||
[editable]="false" | ||
lineItemViewType="simple" | ||
/>--> | ||
</div> | ||
|
||
<pre *ngIf="recurringOrder$ | async as recurringOrder">{{ recurringOrder | json }}</pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters