Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open-source
OSE
Commits
c762e4e9
Commit
c762e4e9
authored
Sep 23, 2021
by
Laurent Lécluse
Browse files
souplesse possible pour les coordonnées bancaires
parent
41dba204
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/Connecteurs-Import/Générique/SRC_INTERVENANT.sql
View file @
c762e4e9
...
...
@@ -37,9 +37,13 @@ SELECT
adresse_pays_id
,
numero_insee
,
numero_insee_provisoire
,
iban
,
bic
,
rib_hors_sepa
,
-- Pour synchroniser les coord. bancaires uniquement sur l'année n, il faut décommenter les 3 lignes ci-dessous et commenter les trois lignes d'après
--CASE WHEN annee_id < current_annee_id THEN i_iban ELSE s_iban END iban,
--CASE WHEN annee_id < current_annee_id THEN i_bic ELSE s_bic END bic,
--CASE WHEN annee_id < current_annee_id THEN i_rib_hors_sepa ELSE s_rib_hors_sepa END rib_hors_sepa,
s_iban
iban
,
s_bic
bic
,
s_rib_hors_sepa
rib_hors_sepa
,
autre_1
,
autre_2
,
autre_3
,
...
...
@@ -240,9 +244,12 @@ FROM (
padr
.
id
adresse_pays_id
,
s
.
numero_insee
numero_insee
,
COALESCE
(
s
.
numero_insee_provisoire
,
i
.
numero_insee_provisoire
,
0
)
numero_insee_provisoire
,
s
.
iban
iban
,
s
.
bic
bic
,
s
.
rib_hors_sepa
rib_hors_sepa
,
s
.
iban
s_iban
,
s
.
bic
s_bic
,
s
.
rib_hors_sepa
s_rib_hors_sepa
,
i
.
iban
i_iban
,
i
.
bic
i_bic
,
i
.
rib_hors_sepa
i_rib_hors_sepa
,
s
.
autre_1
autre_1
,
s
.
autre_2
autre_2
,
s
.
autre_3
autre_3
,
...
...
Write
Preview
Supports
Markdown
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