Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
3851052d
Commit
3851052d
authored
10 months ago
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
when checking existence of recurring payments, do not take into account failed ones
parent
85a9eecd
master
…
6232-6227-sprint5-core
6342-territory-filter-in-flux-menus
6366-authorized-vs-authorised-and-another-detail
6367-cancel-recurring-payment
7376-reconversion-frquency-entity-text
7377-presta-reconv-frequency-default
7516-add-operateur-to-presta-exports
7694-adherent-admin-field-not-required
7694-adherent-admin-household-comp-not-required
7699-add-info-text-for-admin
develop
payment-hotfix
sprint-2-montpellier
ssa-gironde
ssagironde_prod
tavTOKohinos
1 merge request
!85
6260 faux positif dans detection paiement recurrent en cours
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
TAVCotisationUtils.php
src/Utils/TAVCotisationUtils.php
+3
-0
No files found.
src/Utils/TAVCotisationUtils.php
View file @
3851052d
...
...
@@ -10,6 +10,7 @@ use App\Entity\CotisationTavReversement;
use
App\Entity\CotisationTavPrelevement
;
use
App\Enum\MoyenEnum
;
use
App\Utils\CustomEntityManager
;
use
Payum\Core\Request\GetHumanStatus
;
use
Symfony\Component\Security\Core\Security
;
class
TAVCotisationUtils
...
...
@@ -54,11 +55,13 @@ class TAVCotisationUtils
$res
=
""
;
foreach
(
$recurringPayments
as
$p
)
{
if
(
$p
->
getStatus
()
!==
GetHumanStatus
::
STATUS_FAILED
)
{
//filter out failed payments
$reason
=
""
;
if
(
$p
->
isRecurringPaymentEndedOrExpired
(
$reason
)
!==
true
)
{
$res
.=
(
$reason
.
" "
);
}
}
}
return
$res
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment