From b45e53f5ea2fd80a5ff8ed6726f028df932a2406 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Thu, 14 Mar 2024 11:03:54 +0100 Subject: [PATCH] changement identificateur --- add_asset.html | 4 ++-- add_duration.html | 4 ++-- attach_amort.html | 2 +- detach_amort.html | 2 +- index.html | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/add_asset.html b/add_asset.html index 8dcb03a..8815c09 100644 --- a/add_asset.html +++ b/add_asset.html @@ -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 }} diff --git a/add_duration.html b/add_duration.html index cdc88a6..1d2ea13 100644 --- a/add_duration.html +++ b/add_duration.html @@ -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 }} diff --git a/attach_amort.html b/attach_amort.html index a83f391..8c4694d 100644 --- a/attach_amort.html +++ b/attach_amort.html @@ -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}} diff --git a/detach_amort.html b/detach_amort.html index 416083f..e527409 100644 --- a/detach_amort.html +++ b/detach_amort.html @@ -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}} diff --git a/index.html b/index.html index 66daf94..4ee0392 100644 --- a/index.html +++ b/index.html @@ -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}}