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
8b5370dd
Commit
8b5370dd
authored
a year ago
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
for memory : procedure to fix pb de reversement
parent
33462cd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
5232-correction-pas-de-reversement-mona.sql
ext/scripts/5232-correction-pas-de-reversement-mona.sql
+24
-0
No files found.
ext/scripts/5232-correction-pas-de-reversement-mona.sql
0 → 100644
View file @
8b5370dd
--pour voir le compte de michel marques
select
aa
.
id
,
aa
.
balance
,
user
.
email
from
account_adherent
aa
join
user
on
user
.
email
=
'marques.michel1951@gmail.com'
where
user
.
adherent_id
=
aa
.
adherent_id
;
--permet de voir les derniers flux de typê reversement cotisation et vente emlc
select
type
,
montant
,
moyen
,
reference
,
role
,
adherent_id
,
cotisationinfos_id
,
user_id
,
created_at
from
flux
where
type
in
(
'vente_emlc_adherent'
,
'reversement_cotisation_adherent'
)
order
by
created_at
desc
limit
20
;
--idée :
--
-- Supprimer :
-- l'écriture de flux 22733fa2-fd02-427d-9cdd-36161157a9e9 (dernière étape)
-- l'operation_adherent associée à ce flux
-- l'operation_siege associée à ce flux
-- Enlever :
-- 5 mona sur la balance de account_siege
-- 5 mona sur la balance de Michel
delete
from
operation_adherent
where
flux_id
=
'22733fa2-fd02-427d-9cdd-36161157a9e9'
;
delete
from
operation_siege
where
flux_id
=
'22733fa2-fd02-427d-9cdd-36161157a9e9'
;
delete
from
flux
where
id
=
'22733fa2-fd02-427d-9cdd-36161157a9e9'
;
update
account_adherent
set
balance
=
balance
-
5
where
id
=
'3fe6e79a-1288-4fbd-ba33-0007b9c6de7f'
;
update
account_siege
set
balance
=
balance
-
5
where
currency
=
'emlc'
;
--Puis redéclencher le process de cotisation.
\ No newline at end of file
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