correction erreur sélection écritures d'amortissement
This commit is contained in:
parent
4b63ad4560
commit
f17ccd1bc8
2 changed files with 26 additions and 21 deletions
|
|
@ -90,10 +90,13 @@
|
|||
t_immo.id = links.id_related
|
||||
)
|
||||
INNER JOIN acc_transactions_lines as l_amort on amort_trans_id = l_amort.id_transaction
|
||||
INNER JOIN acc_accounts AS account ON l_amort.id_account = account.id
|
||||
WHERE
|
||||
l_immo.id = :line_id
|
||||
AND
|
||||
l_amort.credit <> 0;
|
||||
l_amort.credit <> 0
|
||||
AND
|
||||
account.code LIKE '28%';
|
||||
:line_id = $immo_id|intval
|
||||
}}
|
||||
{{if $amort_amount == null}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue