From 94ce50512b41d75dc41883e9c3c9c7b98cd92258 Mon Sep 17 00:00:00 2001 From: Andreas Buchen Date: Fri, 3 Nov 2023 08:05:58 +0100 Subject: [PATCH] Added filter for inbound or outbound deliveries only Issue: https://forum.portfolio-performance.info/t/filter-ein-und-auslieferungen-in-alle-buchungen-auftrennen/25483/3 --- .../portfolio/ui/views/AllTransactionsView.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/AllTransactionsView.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/AllTransactionsView.java index e8cd36902f..5f4f3c4c58 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/AllTransactionsView.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/AllTransactionsView.java @@ -157,6 +157,18 @@ else if (tx instanceof AccountTransaction atx) || ptx.getType() == PortfolioTransaction.Type.DELIVERY_OUTBOUND; else return false; + }), // + DELIVERIES_INBOUND(PortfolioTransaction.Type.DELIVERY_INBOUND.toString(), 1, tx -> { + if (tx instanceof PortfolioTransaction ptx) + return ptx.getType() == PortfolioTransaction.Type.DELIVERY_INBOUND; + else + return false; + }), // + DELIVERIES_OUTBOUND(PortfolioTransaction.Type.DELIVERY_OUTBOUND.toString(), 1, tx -> { + if (tx instanceof PortfolioTransaction ptx) + return ptx.getType() == PortfolioTransaction.Type.DELIVERY_OUTBOUND; + else + return false; }); private String name;