Correction erreur ajout immobilisation
This commit is contained in:
parent
48504bcb1d
commit
b91c1087ae
@ -16,7 +16,10 @@
|
||||
{{:assign debut=$start_date|date_short}}
|
||||
{{:assign fin=$end_date|date_short}}
|
||||
{{:assign open_years=$open_years|cat:$debut|cat:" à "|cat:$fin}}
|
||||
{{if $start_date|strtotime <= $_POST.date|parse_date|strtotime && $end_date|strtotime >= $_POST.date|parse_date|strtotime}}
|
||||
{{if
|
||||
$start_date|strtotime <= $_POST.date|parse_date|strtotime &&
|
||||
$end_date|strtotime >= $_POST.date|parse_date|strtotime
|
||||
}}
|
||||
{{:assign selected_year=$id}}
|
||||
{{:assign selected_chart=$id_chart}}
|
||||
{{/if}}
|
||||
@ -30,15 +33,19 @@
|
||||
- que le compte d'immo débute par 20 ou 21
|
||||
- est présent dans le PC de l'exercice correspondant à la date
|
||||
*}}
|
||||
{{#foreach from=$_POST.debit_account key="account_code"}}
|
||||
{{:assign account_code=$account_code}}
|
||||
{{/foreach}}
|
||||
|
||||
{{#select
|
||||
code
|
||||
FROM acc_accounts
|
||||
WHERE id_chart =:id_chart
|
||||
WHERE id_chart = :id_chart
|
||||
AND
|
||||
(code LIKE "20%" OR code LIKE "21%");
|
||||
:id_chart = $selected_chart|intval
|
||||
}}
|
||||
{{if $_POST.debit_account|has_key:$code}}
|
||||
{{if $account_code == $code}}
|
||||
{{:assign account_ok=1}}
|
||||
{{:break}}
|
||||
{{/if}}
|
||||
@ -88,11 +95,6 @@
|
||||
{{* formulaire d'ajout d'immobilisation *}}
|
||||
{{:assign var="bank_account.512A" value="512A — Compte courant"}}
|
||||
|
||||
{{*
|
||||
TODO
|
||||
- ajouter autres rubriques selon besoin
|
||||
*}}
|
||||
|
||||
{{#select id,label FROM acc_projects WHERE archived = 0;}}
|
||||
{{:assign var="projects.%d"|args:$id value=$label}}
|
||||
{{/select}}
|
||||
|
Loading…
Reference in New Issue
Block a user