Skip to content

Commit

Permalink
Use constants
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Apr 25, 2024
1 parent ce0a95b commit 3962e9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions galette/lib/Galette/Entity/Contribution.php
Expand Up @@ -567,7 +567,7 @@ public function checkOverlap(): bool|string
'c.' . ContributionsTypes::PK . '=ct.' . ContributionsTypes::PK,
array()
)->where([Adherent::PK => $this->member])
->where->notEqualTo('cotis_extension', 0)
->where->notEqualTo('cotis_extension', ContributionType::TYPE_DONATION)
->where->nest->nest
->greaterThanOrEqualTo('date_debut_cotis', $this->begin_date)
->lessThanOrEqualTo('date_debut_cotis', $this->end_date)
Expand Down Expand Up @@ -865,7 +865,7 @@ public static function getDueDate(Db $zdb, ?int $member_id): ?string
)->where(
[Adherent::PK => $member_id]
)
->where->notEqualTo('cotis_extension', 0);
->where->notEqualTo('cotis_extension', ContributionType::TYPE_DONATION);

$results = $zdb->execute($select);
$result = $results->current();
Expand Down

0 comments on commit 3962e9b

Please sign in to comment.