Enregistrement libellé lignes immo transférée
This commit is contained in:
parent
ee0c0e304d
commit
5db235669f
1 changed files with 10 additions and 8 deletions
|
|
@ -36,7 +36,7 @@
|
||||||
{{:assign trans_list=$trans_list|implode:","}}
|
{{:assign trans_list=$trans_list|implode:","}}
|
||||||
{{:assign trans_list="("|cat:$trans_list|cat:")"}}
|
{{:assign trans_list="("|cat:$trans_list|cat:")"}}
|
||||||
{{:assign condition=$condition|cat:" AND trans.id IN "|cat:$trans_list}}
|
{{:assign condition=$condition|cat:" AND trans.id IN "|cat:$trans_list}}
|
||||||
{{:assign condition=$condition|cat:" AND NOT (trans.status & 16)"}}
|
{{*:assign condition=$condition|cat:" AND NOT (trans.status & 16)"*}}
|
||||||
|
|
||||||
{{#select
|
{{#select
|
||||||
trans.id as trans_id,
|
trans.id as trans_id,
|
||||||
|
|
@ -45,6 +45,7 @@
|
||||||
SUM(line.debit) AS line_debit,
|
SUM(line.debit) AS line_debit,
|
||||||
account.code AS account_code,
|
account.code AS account_code,
|
||||||
account.label AS account_label,
|
account.label AS account_label,
|
||||||
|
line.label as line_label,
|
||||||
line.id_project as project_id
|
line.id_project as project_id
|
||||||
FROM acc_transactions AS trans
|
FROM acc_transactions AS trans
|
||||||
INNER JOIN acc_transactions_lines AS line ON line.id_transaction = trans.id
|
INNER JOIN acc_transactions_lines AS line ON line.id_transaction = trans.id
|
||||||
|
|
@ -56,6 +57,7 @@
|
||||||
}}
|
}}
|
||||||
{{:assign var="transactions.%s"|args:$trans_id
|
{{:assign var="transactions.%s"|args:$trans_id
|
||||||
amount=$line_debit
|
amount=$line_debit
|
||||||
|
line_label=$line_label
|
||||||
date=$trans_date
|
date=$trans_date
|
||||||
code=$account_code
|
code=$account_code
|
||||||
label=$account_label
|
label=$account_label
|
||||||
|
|
@ -255,17 +257,17 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{{:input
|
{{:input
|
||||||
type="list"
|
type="list"
|
||||||
name="credit_accounts[]"
|
name="credit_accounts[]"
|
||||||
required=true
|
required=true
|
||||||
readonly=true
|
readonly=true
|
||||||
target="!acc/charts/accounts/selector.php?codes=%s&id_year=%d"|args:$code:$selected_year
|
target="!acc/charts/accounts/selector.php?codes=%s&id_year=%d"|args:$code:$selected_year
|
||||||
default=$current_account
|
default=$current_account
|
||||||
}}
|
}}
|
||||||
</td>
|
</td>
|
||||||
<td>{{:input name="credit_lines[]" type="text" class="money" size="8" default=$amount|money}}</td>
|
<td>{{:input name="credit_lines[]" type="text" class="money" size="8" default=$amount|money}}</td>
|
||||||
<td>{{:input name="debit_lines[]" type="text" class="money" size="8" disabled=true}}</td>
|
<td>{{:input name="debit_lines[]" type="text" class="money" size="8" disabled=true}}</td>
|
||||||
<td>{{:input type="text" name="line_labels[]" size="40"}}</td>
|
<td>{{:input type="text" name="line_labels[]" size="40" default=$line_label}}</td>
|
||||||
<td>
|
<td>
|
||||||
{{if $projects != null}}
|
{{if $projects != null}}
|
||||||
{{:input type="select" name="id_project" options=$projects default_empty="— Aucun —"}}
|
{{:input type="select" name="id_project" options=$projects default_empty="— Aucun —"}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue