Skip to content

Commit

Permalink
fix cases where event_product is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
07joshua03 committed Jan 26, 2024
1 parent 837efc3 commit 64a5f8b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ AND EXTRACT(MONTH FROM O.PAID_AT) = :month
WHERE (:includeFreeProducts OR OP.PRICE > 0)
) B
INNER JOIN PRODUCT P ON B.PRODUCT_ID = P.ID
INNER JOIN EVENT_PRODUCTS EP ON P.ID = EP.PRODUCTS_ID
INNER JOIN EVENT E ON EP.EVENT_ID = E.ID""", nativeQuery = true)
LEFT JOIN EVENT_PRODUCTS EP ON P.ID = EP.PRODUCTS_ID
LEFT JOIN EVENT E ON EP.EVENT_ID = E.ID""", nativeQuery = true)
List<TreasurerData> findallPaymentsByMonth(@Param("month") Integer month, @Param("year") Integer year, @Param("paymentMethods") Collection<Integer> paymentMethods, @Param("includeFreeProducts") boolean includeFreeProducts);
}

0 comments on commit 64a5f8b

Please sign in to comment.