Mutualisation _detach_xxx
This commit is contained in:
parent
f735245273
commit
275a7a18ca
27 changed files with 88 additions and 179 deletions
|
|
@ -76,10 +76,10 @@
|
|||
WHERE !account_condition
|
||||
AND credit > 0
|
||||
AND credit_line_id NOT IN (
|
||||
SELECT json_extract(link.document, '$.credit_line_id') AS credit_line_id FROM !table as link
|
||||
WHERE json_extract(link.document, '$.type') == "credit_link"
|
||||
SELECT json_extract(credit_link.document, '$.line_id') AS line_id FROM !table as credit_link
|
||||
WHERE json_extract(credit_link.document, '$.type') == "credit_link"
|
||||
UNION
|
||||
SELECT json_extract(exit_link.document, '$.exit_line_id') AS line_id FROM !table as exit_link
|
||||
SELECT json_extract(exit_link.document, '$.line_id') AS line_id FROM !table as exit_link
|
||||
WHERE json_extract(exit_link.document, '$.type') == "exit_link")
|
||||
ORDER BY trans.date, trans.label;
|
||||
!account_condition = $account_condition
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue