Harmonisation navigation et sélection comptes et sous-comptes crédit
This commit is contained in:
parent
2af96b2796
commit
d4743f3631
6 changed files with 38 additions and 15 deletions
|
|
@ -18,6 +18,7 @@
|
|||
{{*
|
||||
lister les écritures au crédit du compte de l'immobilisation
|
||||
*}}
|
||||
{{:assign account_code=$ligne_immo.account_code|cat:"%"}}
|
||||
{{#select
|
||||
line.id as credit_line_id,
|
||||
line.id_transaction as credit_trans_id,
|
||||
|
|
@ -34,12 +35,15 @@
|
|||
INNER JOIN acc_transactions AS trans ON trans.id = line.id_transaction
|
||||
INNER JOIN acc_accounts AS account ON account.id = line.id_account
|
||||
INNER JOIN acc_years AS y ON y.id = trans.id_year
|
||||
WHERE account.code = :account_code AND credit > 0
|
||||
WHERE account.code LIKE :account_code 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")
|
||||
WHERE json_extract(link.document, '$.type') == "credit_link"
|
||||
UNION
|
||||
SELECT json_extract(exit_link.document, '$.exit_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_code = $ligne_immo.account_code
|
||||
:account_code = $account_code
|
||||
!table =$module.table
|
||||
assign="other_immos."
|
||||
}}
|
||||
|
|
@ -60,7 +64,7 @@
|
|||
<section class="immobilisation">
|
||||
<fieldset>
|
||||
<legend>
|
||||
Écritures au crédit du compte d'immobilisation « {{$ligne_immo.account_code}} »
|
||||
Écritures au crédit du compte d'immobilisation « {{$ligne_immo.account_code}} » et sous-comptes
|
||||
</legend>
|
||||
|
||||
<div class="informations">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue