Mutualisation _detach_xxx
This commit is contained in:
parent
f735245273
commit
275a7a18ca
27 changed files with 88 additions and 179 deletions
|
|
@ -8,7 +8,7 @@
|
|||
*}}
|
||||
{{:assign linked_immos=null}}
|
||||
{{:assign total_credits=0}}
|
||||
{{#load type="credit_link" where="$$.immo_doc_id=:immo_doc_id" :immo_doc_id=$immo_doc_id|intval}}
|
||||
{{#load type="credit_link" where="$$.immo_doc_id=:immo_doc_id" :immo_doc_id=$immo_doc_id|intval assign="credit_info"}}
|
||||
{{#select
|
||||
line.credit,
|
||||
line.id as line_id,
|
||||
|
|
@ -23,8 +23,8 @@
|
|||
INNER JOIN acc_transactions AS trans ON line.id_transaction = trans.id
|
||||
INNER join acc_accounts AS account on line.id_account = account.id
|
||||
WHERE line.id = :credit_line_id;
|
||||
:credit_line_id=$credit_line_id
|
||||
}}
|
||||
:credit_line_id=$credit_info.line_id
|
||||
}}
|
||||
{{:assign credit=$credit}}
|
||||
{{:assign var="linked_immos." doc=$id trans_id=$trans_id credit_line_id=$line_id label=$label amount=$credit date=$date account_id=$account_id account_code=$account_code account_label=$account_label year=$year}}
|
||||
{{/select}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue