Merged PR 1453: #3682 AHF // Reservierungsliste - RadionButton ein- und ausblenden bei Paid/Unpaid

#3682 AHF // Reservierungsliste - Radion-Button ein- und ausblenden bei Bezahlt vs Nicht Bezahlt

Related work items: #3682
This commit is contained in:
Andreas Schickinger
2022-11-29 14:17:52 +00:00
committed by Nino Righi
parent f344c2b0e8
commit 69c23a55f7

View File

@@ -13,7 +13,9 @@ export class GoodsInReservationSelectablePipe implements PipeTransform {
if (selectedItems.length > 0) {
const firstSelectedItem = selectedItems[0];
const selectedLabel = firstSelectedItem.actions.find((action) => selectionRules(action)).label;
return item?.actions?.some((action) => selectionRules(action) && action.label === selectedLabel);
return item?.actions?.some(
(action) => selectionRules(action) && action.label === selectedLabel && item?.features?.paid === firstSelectedItem?.features?.paid
);
} else {
return item?.actions?.some((action) => selectionRules(action));
}