Skip to content

Commit

Permalink
Potentially fixing discount bug
Browse files Browse the repository at this point in the history
  • Loading branch information
porgabi committed Aug 2, 2023
1 parent 836bd45 commit 426a2a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public Task<bool> IsApplicableAsync(PromotionAndTaxProviderContext model) =>
private static bool IsApplicable(
IList<PromotionAndTaxProviderContextLineItem> lineItems,
DateTime? purchaseDateTime) =>
lineItems.All(item => IsApplicablePerItem(item, purchaseDateTime));
lineItems.Any(item => IsApplicablePerItem(item, purchaseDateTime));

private static bool IsApplicablePerItem(PromotionAndTaxProviderContextLineItem item, DateTime? purchaseDateTime)
{
Expand Down

0 comments on commit 426a2a6

Please sign in to comment.