Merged PR 2046: feature(crm-data-access): Update Transactions Endpoint

feature(crm-data-access): Update Transactions Endpoint

Ref: #5336
This commit is contained in:
Nino Righi
2025-11-21 17:39:57 +00:00
committed by Lorenz Hilpert
parent bb717975a0
commit 4107641e75
6 changed files with 73 additions and 28 deletions

View File

@@ -28,7 +28,7 @@
}
<crm-customer-card-transactions
[cardCode]="activeCardCode ?? firstCardCode()"
[customerId]="customerId()"
class="mt-8"
(reload)="reloadCardTransactionsAndCards()"
/>

View File

@@ -72,15 +72,6 @@ export class KundenkarteMainViewComponent implements OnDestroy {
*/
readonly customerId = toSignal(this.customerId$);
/**
* Get the first card code
*/
readonly firstCardCode = computed(() => {
const cards = this.#bonusCardsResource.resource.value();
const firstCard = cards?.[0];
return firstCard?.code;
});
/**
* Get the first active card code
*/