changement identificateur
This commit is contained in:
parent
f3c2d2c884
commit
b45e53f5ea
@ -30,13 +30,13 @@
|
||||
}}
|
||||
|
||||
{{* enregistrer les infos de l'immobilisation *}}
|
||||
{{:assign var="line_id" value=$result.lines.1.id}}
|
||||
{{:assign var="immo_id" value=$result.lines.1.id}}
|
||||
{{:assign key=""|uuid}}
|
||||
{{:save
|
||||
key=$key
|
||||
validate_schema="schema.json"
|
||||
type="immo"
|
||||
line=$line_id
|
||||
line=$immo_id
|
||||
duration=$_POST.duree|intval
|
||||
}}
|
||||
|
||||
|
@ -14,13 +14,13 @@
|
||||
{{* Traiter l'envoi du formulaire *}}
|
||||
{{#form on="add"}}
|
||||
{{* enregistrer les infos de l'immobilisation *}}
|
||||
{{:assign var="line_id" value=$_GET.line_id|intval}}
|
||||
{{:assign var="immo_id" value=$_GET.immo_id|intval}}
|
||||
{{:assign key=""|uuid}}
|
||||
{{:save
|
||||
key=$key
|
||||
validate_schema="schema.json"
|
||||
type="immo"
|
||||
line=$line_id
|
||||
line=$immo_id
|
||||
duration=$_POST.duree|intval
|
||||
}}
|
||||
|
||||
|
@ -30,4 +30,4 @@
|
||||
duration=$info_immo.duration
|
||||
amort=$assoc
|
||||
}}
|
||||
{{:redirect to="amortization.html?line_id=%s&ok=1&msg=attach"|args:$_GET.immo_id}}
|
||||
{{:redirect to="amortization.html?immo_id=%s&ok=1&msg=attach"|args:$_GET.immo_id}}
|
||||
|
@ -28,4 +28,4 @@
|
||||
duration=$info_immo.duration
|
||||
amort=$t_amort
|
||||
}}
|
||||
{{:redirect to="amortization.html?line_id=%s&ok=1&msg=detach"|args:$_GET.immo_id}}
|
||||
{{:redirect to="amortization.html?immo_id=%s&ok=1&msg=detach"|args:$_GET.immo_id}}
|
||||
|
@ -42,7 +42,7 @@
|
||||
trans.id as trans_id,
|
||||
trans.label as trans_label,
|
||||
trans.date as trans_date,
|
||||
line.id as line_id,
|
||||
line.id as immo_id,
|
||||
account.code as account_code,
|
||||
account.label as account_label,
|
||||
line.debit AS debit,
|
||||
@ -57,7 +57,7 @@
|
||||
ORDER BY trans.date DESC
|
||||
}}
|
||||
{{:assign trans_url="%s/acc/transactions/details.php?id=%s"|args:$admin_url:$trans_id}}
|
||||
{{#load type="immo" where="$$.line = :line_id" :line_id=$line_id|intval}}
|
||||
{{#load type="immo" where="$$.line = :line_id" :line_id=$immo_id|intval}}
|
||||
{{*:debug info_immo=$info_immo*}}
|
||||
{{:assign duration=$duration}}
|
||||
{{else}}
|
||||
@ -77,14 +77,14 @@
|
||||
{{if $duration == null}}
|
||||
{{:linkbutton
|
||||
label="Ajouter durée"
|
||||
href="add_duration.html?line_id=%s"|args:$line_id
|
||||
href="add_duration.html?immo_id=%s"|args:$immo_id
|
||||
shape="help"
|
||||
target="_dialog"
|
||||
}}
|
||||
{{else}}
|
||||
{{:linkbutton
|
||||
label="Amortissements"
|
||||
href="amortization.html?line_id=%s"|args:$line_id
|
||||
href="amortization.html?immo_id=%s"|args:$immo_id
|
||||
shape="table"
|
||||
}}
|
||||
{{/if}}
|
||||
|
Loading…
Reference in New Issue
Block a user