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