Browse Source

fix(admin-ui): Display correct net total in Order detail

Fixes #200
Michael Bromley 6 years ago
parent
commit
b177f2ce7a

+ 1 - 1
packages/admin-ui/src/app/order/components/order-detail/order-detail.component.html

@@ -77,7 +77,7 @@
                     </td>
                     <td class="align-middle total">
                         {{ line.totalPrice / 100 | currency: order.currencyCode }}
-                        <div class="net-price" [title]="'order.net-price' | translate">{{ line.unitPrice / 100 | currency: order.currencyCode }}</div>
+                        <div class="net-price" [title]="'order.net-price' | translate">{{ (line.unitPrice * line.quantity) / 100 | currency: order.currencyCode }}</div>
 
                         <ng-container *ngIf="getLinePromotions(line) as promotions">
                             <vdr-dropdown *ngIf="promotions.length">