+
+ Letzte 5 Transaktionen des Kunden
+
+
+ @if (isLoading()) {
+
Lade Transaktionen...
+ } @else if (error()) {
+
+ Fehler beim Laden der Transaktionen
+
+ } @else if (!transactions()?.length) {
+
+ } @else {
+
+
+
+ |
+ Datum
+ |
+
+ {{ t.date | date: 'dd.MM.yyyy' }} {{ t.date | date: 'HH:mm.ss' }}
+ |
+
+
+
+
+
+ Buchungsart
+ |
+
+ {{ t.reason || '-' }}
+ |
+
+
+
+
+
+ Umsatz
+ |
+
+ @if (t.type === 'BURN') {-}{{ t.amount || 0 | number: '1.2-2' : 'de-DE' }} EUR
+ |
+
+
+
+
+
+ Bon-Nummer
+ |
+
+ {{ t.reference || '-' }}
+ |
+
+
+
+
+
+ Lesepunkte
+ |
+
+ @if (t.type === 'EARN') {
+
+ {{ t.points }}
+
+
+ } @else if (t.type === 'BURN') {
+
+ -{{ t.points }}
+
+
+ } @else {
+ {{ t.points }}
+ }
+ |
+
+
+
+
+
+
+
+
+ }
+
diff --git a/libs/crm/feature/customer-card-transactions/src/lib/crm-feature-customer-card-transactions/crm-feature-customer-card-transactions.component.spec.ts b/libs/crm/feature/customer-card-transactions/src/lib/crm-feature-customer-card-transactions/crm-feature-customer-card-transactions.component.spec.ts
new file mode 100644
index 000000000..396a85cf9
--- /dev/null
+++ b/libs/crm/feature/customer-card-transactions/src/lib/crm-feature-customer-card-transactions/crm-feature-customer-card-transactions.component.spec.ts
@@ -0,0 +1,23 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+import { CrmFeatureCustomerCardTransactionsComponent } from './crm-feature-customer-card-transactions.component';
+
+describe('CrmFeatureCustomerCardTransactionsComponent', () => {
+ let component: CrmFeatureCustomerCardTransactionsComponent;
+ let fixture: ComponentFixture