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
6e65ae81
Commit
6e65ae81
authored
Mar 20, 2024
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add BIC to prestataires
parent
c2317d81
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
109 additions
and
0 deletions
+109
-0
PrestataireAdmin.php
src/Admin/PrestataireAdmin.php
+4
-0
IndexController.php
src/Controller/IndexController.php
+2
-0
Prestataire.php
src/Entity/Prestataire.php
+33
-0
InstallFormType.php
src/Form/Type/InstallFormType.php
+3
-0
PrestataireInfosFormType.php
src/Form/Type/PrestataireInfosFormType.php
+4
-0
Version20240320144059.php
src/Migrations/Version20240320144059.php
+31
-0
Version20240320153828.php
src/Migrations/Version20240320153828.php
+31
-0
infos.html.twig
templates/themes/kohinos/presta/block/infos.html.twig
+1
-0
No files found.
src/Admin/PrestataireAdmin.php
View file @
6e65ae81
...
@@ -206,6 +206,10 @@ class PrestataireAdmin extends AbstractAdmin
...
@@ -206,6 +206,10 @@ class PrestataireAdmin extends AbstractAdmin
'label'
=>
'SIRET :'
,
'label'
=>
'SIRET :'
,
'required'
=>
false
,
'required'
=>
false
,
])
])
->
add
(
'bic'
,
TextType
::
class
,
[
'label'
=>
'BIC :'
,
'required'
=>
false
,
])
->
add
(
'iban'
,
PersonalDataType
::
class
,
[
->
add
(
'iban'
,
PersonalDataType
::
class
,
[
'label'
=>
'IBAN :'
,
'label'
=>
'IBAN :'
,
'required'
=>
false
,
'required'
=>
false
,
...
...
src/Controller/IndexController.php
View file @
6e65ae81
...
@@ -436,6 +436,7 @@ class IndexController extends AbstractController
...
@@ -436,6 +436,7 @@ class IndexController extends AbstractController
$user
=
$form
[
'user'
]
->
getData
();
$user
=
$form
[
'user'
]
->
getData
();
$groupe
=
$form
[
'groupe'
]
->
getData
();
$groupe
=
$form
[
'groupe'
]
->
getData
();
$configs
=
$form
[
'config'
]
->
getData
();
$configs
=
$form
[
'config'
]
->
getData
();
$bic
=
$form
[
'bic'
]
->
getData
();
$iban
=
$form
[
'iban'
]
->
getData
();
$iban
=
$form
[
'iban'
]
->
getData
();
$website
=
$form
[
'website'
]
->
getData
();
$website
=
$form
[
'website'
]
->
getData
();
$groupe
->
setSiege
(
$siege
);
$groupe
->
setSiege
(
$siege
);
...
@@ -446,6 +447,7 @@ class IndexController extends AbstractController
...
@@ -446,6 +447,7 @@ class IndexController extends AbstractController
$presta
->
setRaison
(
'Monnaie locale'
);
$presta
->
setRaison
(
'Monnaie locale'
);
$presta
->
setDescription
(
'Association gérant la monnaie locale et recevant les cotisations'
);
$presta
->
setDescription
(
'Association gérant la monnaie locale et recevant les cotisations'
);
$presta
->
setEnabled
(
true
);
$presta
->
setEnabled
(
true
);
$presta
->
setBic
(
$bic
);
$presta
->
setIban
(
$iban
);
$presta
->
setIban
(
$iban
);
if
(
!
empty
(
$website
))
{
if
(
!
empty
(
$website
))
{
$presta
->
setWeb
(
$website
);
$presta
->
setWeb
(
$website
);
...
...
src/Entity/Prestataire.php
View file @
6e65ae81
...
@@ -146,6 +146,19 @@ class Prestataire extends AccountableObject implements AccountableInterface
...
@@ -146,6 +146,19 @@ class Prestataire extends AccountableObject implements AccountableInterface
private
$iban
;
private
$iban
;
/**
/**
* Bank Identifier Code.
*
* @var string
*
* @ORM\Column(name="bic", type="string", nullable=true)
*
* @Assert\Bic(
* ibanPropertyPath="iban"
* )
*/
private
$bic
;
/**
* @var string
* @var string
*
*
* @ORM\Column(name="siret", type="string", length=50, nullable=true)
* @ORM\Column(name="siret", type="string", length=50, nullable=true)
...
@@ -541,6 +554,26 @@ class Prestataire extends AccountableObject implements AccountableInterface
...
@@ -541,6 +554,26 @@ class Prestataire extends AccountableObject implements AccountableInterface
/**
/**
* @return string
* @return string
*/
*/
public
function
getBic
()
:
?
string
{
return
$this
->
bic
;
}
/**
* @param string $bic
*
* @return Prestataire
*/
public
function
setBic
(
?
string
$bic
)
:
self
{
$this
->
bic
=
$bic
;
return
$this
;
}
/**
* @return string
*/
public
function
getSiret
()
:
?
string
public
function
getSiret
()
:
?
string
{
{
return
$this
->
siret
;
return
$this
->
siret
;
...
...
src/Form/Type/InstallFormType.php
View file @
6e65ae81
...
@@ -29,6 +29,9 @@ class InstallFormType extends AbstractType
...
@@ -29,6 +29,9 @@ class InstallFormType extends AbstractType
'label'
=>
'CONFIGURATIONS GLOBALES :'
,
'label'
=>
'CONFIGURATIONS GLOBALES :'
,
'label_attr'
=>
[
'class'
=>
'font-weight-bold'
],
'label_attr'
=>
[
'class'
=>
'font-weight-bold'
],
])
])
->
add
(
'bic'
,
TextType
::
class
,
[
'label'
=>
"BIC de l'association gérant la MLC :"
,
])
->
add
(
'iban'
,
TextType
::
class
,
[
->
add
(
'iban'
,
TextType
::
class
,
[
'label'
=>
"IBAN de l'association gérant la MLC :"
,
'label'
=>
"IBAN de l'association gérant la MLC :"
,
])
])
...
...
src/Form/Type/PrestataireInfosFormType.php
View file @
6e65ae81
...
@@ -66,6 +66,10 @@ class PrestataireInfosFormType extends AbstractType
...
@@ -66,6 +66,10 @@ class PrestataireInfosFormType extends AbstractType
'label'
=>
'SIRET :'
,
'label'
=>
'SIRET :'
,
'required'
=>
false
,
'required'
=>
false
,
])
])
->
add
(
'bic'
,
TextType
::
class
,
[
'label'
=>
'BIC :'
,
'required'
=>
false
,
])
->
add
(
'iban'
,
TextType
::
class
,
[
->
add
(
'iban'
,
TextType
::
class
,
[
'label'
=>
'IBAN :'
,
'label'
=>
'IBAN :'
,
'required'
=>
false
,
'required'
=>
false
,
...
...
src/Migrations/Version20240320144059.php
0 → 100644
View file @
6e65ae81
<?php
declare
(
strict_types
=
1
);
namespace
DoctrineMigrations
;
use
Doctrine\DBAL\Schema\Schema
;
use
Doctrine\Migrations\AbstractMigration
;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final
class
Version20240320144059
extends
AbstractMigration
{
public
function
getDescription
()
:
string
{
return
''
;
}
public
function
up
(
Schema
$schema
)
:
void
{
// this up() migration is auto-generated, please modify it to your needs
$this
->
addSql
(
'ALTER TABLE prestataire ADD bic VARCHAR(8) DEFAULT NULL, CHANGE iban iban LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:personal_data)\''
);
}
public
function
down
(
Schema
$schema
)
:
void
{
// this down() migration is auto-generated, please modify it to your needs
$this
->
addSql
(
'ALTER TABLE prestataire DROP bic, CHANGE iban iban LONGTEXT CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_general_ci` COMMENT \'(DC2Type:personal_data)\''
);
}
}
src/Migrations/Version20240320153828.php
0 → 100644
View file @
6e65ae81
<?php
declare
(
strict_types
=
1
);
namespace
DoctrineMigrations
;
use
Doctrine\DBAL\Schema\Schema
;
use
Doctrine\Migrations\AbstractMigration
;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final
class
Version20240320153828
extends
AbstractMigration
{
public
function
getDescription
()
:
string
{
return
''
;
}
public
function
up
(
Schema
$schema
)
:
void
{
// this up() migration is auto-generated, please modify it to your needs
$this
->
addSql
(
'ALTER TABLE prestataire CHANGE iban iban LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:personal_data)\', CHANGE bic bic VARCHAR(255) DEFAULT NULL'
);
}
public
function
down
(
Schema
$schema
)
:
void
{
// this down() migration is auto-generated, please modify it to your needs
$this
->
addSql
(
'ALTER TABLE prestataire CHANGE iban iban LONGTEXT CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_general_ci` COMMENT \'(DC2Type:personal_data)\', CHANGE bic bic VARCHAR(8) CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_general_ci`'
);
}
}
templates/themes/kohinos/presta/block/infos.html.twig
View file @
6e65ae81
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
</div>
</div>
{%
endif
%}
{%
endif
%}
{{
form_row
(
form.siret
)
}}
{{
form_row
(
form.siret
)
}}
{{
form_row
(
form.bic
)
}}
{{
form_row
(
form.iban
)
}}
{{
form_row
(
form.iban
)
}}
{{
form_row
(
form.responsable
)
}}
{{
form_row
(
form.responsable
)
}}
{{
form_row
(
form.metier
)
}}
{{
form_row
(
form.metier
)
}}
...
...
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