Correction oubli
This commit is contained in:
parent
a15254f372
commit
c852fecb69
1 changed files with 3 additions and 5 deletions
|
|
@ -20,10 +20,9 @@
|
||||||
{{#select
|
{{#select
|
||||||
trans.id
|
trans.id
|
||||||
FROM acc_transactions_lines AS line
|
FROM acc_transactions_lines AS line
|
||||||
INNER JOIN !table ON $$.credit_line_id = line.id
|
INNER JOIN !table AS credit_link ON $$.credit_line_id = line.id
|
||||||
INNER JOIN acc_transactions AS trans ON line.id_transaction = trans.id
|
INNER JOIN acc_transactions AS trans ON line.id_transaction = trans.id
|
||||||
WHERE $$.type =
|
WHERE $$.type = "credit_link" AND $$.immo_doc_id = :immo_doc_id
|
||||||
"credit_link" AND $$.immo_doc_id = :immo_doc_id
|
|
||||||
;
|
;
|
||||||
!table = $module.table
|
!table = $module.table
|
||||||
:immo_doc_id = $_GET.immo_doc_id|intval
|
:immo_doc_id = $_GET.immo_doc_id|intval
|
||||||
|
|
@ -60,8 +59,7 @@
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{{* supprimer les docs de liaison *}}
|
{{* supprimer les docs de liaison *}}
|
||||||
{{:delete type="immo_link" where="$$.immo_doc_id = :immo_doc_id" :immo_doc_id = $_GET.immo_doc_id|intval}}
|
{{:delete type="credit_link" where="$$.immo_doc_id = :immo_doc_id" :immo_doc_id = $_GET.immo_doc_id|intval}}
|
||||||
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{* supprimer les infos de l'immobilisation *}}
|
{{* supprimer les infos de l'immobilisation *}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue