Skip to content

Commit

Permalink
Added filter for inbound or outbound deliveries only
Browse files Browse the repository at this point in the history
  • Loading branch information
buchen committed Nov 3, 2023
1 parent 4d39ed6 commit 94ce505
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 94ce505

Please sign in to comment.