mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
Merged PR 464: #1390 Currency Pipe bei Bestellungen verwendet
#1390 Currency Pipe bei Bestellungen verwendet
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
{{ order.processingStatus | processingStatus }}
|
||||
</div>
|
||||
<div class="order-col">{{ order.orderType | orderType }} | {{ order.shopName }}</div>
|
||||
<div class="order-col">{{ order.orderValue | orderPrice }} {{ order.currency }} | {{ order.itemsCount }} Artikel</div>
|
||||
<div class="order-col">{{ order.orderValue | currency: ' ' }} {{ order.currency }} | {{ order.itemsCount }} Artikel</div>
|
||||
<div class="order-col details">Details</div>
|
||||
</div>
|
||||
<div *ngIf="i === orders.length - 1" class="line"></div>
|
||||
|
||||
@@ -4,6 +4,5 @@ export * from './gender.pipe';
|
||||
export * from './address.pipe';
|
||||
export * from './order-type.pipe';
|
||||
export * from './processing-status.pipe';
|
||||
export * from './order-price.pipe';
|
||||
export * from './pipes.module';
|
||||
// end:ng42.barrel
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'orderPrice',
|
||||
})
|
||||
export class OrderPricePipe implements PipeTransform {
|
||||
transform(value: any): string {
|
||||
let str = `${value}`;
|
||||
if (str.indexOf('.') < 0) {
|
||||
str = `${str}.00`;
|
||||
}
|
||||
return str.replace('.', ',');
|
||||
}
|
||||
}
|
||||
@@ -4,10 +4,9 @@ import { CountryPipe } from './country.pipe';
|
||||
import { GenderPipe } from './gender.pipe';
|
||||
import { OrderTypePipe } from './order-type.pipe';
|
||||
import { ProcessingStatusPipe } from './processing-status.pipe';
|
||||
import { OrderPricePipe } from './order-price.pipe';
|
||||
|
||||
@NgModule({
|
||||
exports: [CountryPipe, GenderPipe, AddressPipe, OrderTypePipe, ProcessingStatusPipe, OrderPricePipe],
|
||||
declarations: [CountryPipe, GenderPipe, AddressPipe, OrderTypePipe, ProcessingStatusPipe, OrderPricePipe],
|
||||
exports: [CountryPipe, GenderPipe, AddressPipe, OrderTypePipe, ProcessingStatusPipe],
|
||||
declarations: [CountryPipe, GenderPipe, AddressPipe, OrderTypePipe, ProcessingStatusPipe],
|
||||
})
|
||||
export class CustomerPipesModule {}
|
||||
|
||||
Reference in New Issue
Block a user