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
6
Merge Requests
6
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
94d5f89e
Commit
94d5f89e
authored
Dec 16, 2022
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix comments
parent
9497cdf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
CotisationUtils.php
src/Utils/CotisationUtils.php
+3
-3
No files found.
src/Utils/CotisationUtils.php
View file @
94d5f89e
...
@@ -105,7 +105,7 @@ class CotisationUtils
...
@@ -105,7 +105,7 @@ class CotisationUtils
*/
*/
public
function
isCotisationValidForPresta
(
?
Prestataire
$presta
)
public
function
isCotisationValidForPresta
(
?
Prestataire
$presta
)
{
{
// In TAV mode,
cotisation is always valid. Return next year date
.
// In TAV mode,
no standard cotisation required. Return next year date to make all accounts valid
.
if
(
$this
->
container
->
getParameter
(
'tav_env'
))
{
if
(
$this
->
container
->
getParameter
(
'tav_env'
))
{
return
date
(
'Y-m-d'
,
strtotime
(
'+1 year'
));
return
date
(
'Y-m-d'
,
strtotime
(
'+1 year'
));
}
}
...
@@ -160,7 +160,7 @@ class CotisationUtils
...
@@ -160,7 +160,7 @@ class CotisationUtils
*/
*/
public
function
isCotisationValidForAdherent
(
?
Adherent
$adherent
)
public
function
isCotisationValidForAdherent
(
?
Adherent
$adherent
)
{
{
// In TAV mode,
cotisation is always valid. Return next year date
.
// In TAV mode,
no standard cotisation required. Return next year date to make all accounts valid
.
if
(
$this
->
container
->
getParameter
(
'tav_env'
))
{
if
(
$this
->
container
->
getParameter
(
'tav_env'
))
{
return
date
(
'Y-m-d'
,
strtotime
(
'+1 year'
));
return
date
(
'Y-m-d'
,
strtotime
(
'+1 year'
));
}
}
...
@@ -190,7 +190,7 @@ class CotisationUtils
...
@@ -190,7 +190,7 @@ class CotisationUtils
*/
*/
public
function
isCotisationValid
(
?
UserInterface
$user
)
public
function
isCotisationValid
(
?
UserInterface
$user
)
{
{
// In TAV mode,
cotisation is always valid. Return next year date
.
// In TAV mode,
no standard cotisation required. Return next year date to make all accounts valid
.
if
(
$this
->
container
->
getParameter
(
'tav_env'
))
{
if
(
$this
->
container
->
getParameter
(
'tav_env'
))
{
return
date
(
'Y-m-d'
,
strtotime
(
'+1 year'
));
return
date
(
'Y-m-d'
,
strtotime
(
'+1 year'
));
}
}
...
...
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