[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 156/219: Task #1489: Procédure d'ouverture d
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 156/219: Task #1489: Procédure d'ouverture d'exercice : libellé ambigu Amélioration esthétique & ergonomie |
Date: |
Mon, 18 Dec 2017 13:22:55 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 3cf0f9dfa4a71a16026ff16d95e4062e7361145b
Author: Dany De Bontridder <address@hidden>
Date: Sun Nov 19 18:51:39 2017 +0100
Task #1489: Procédure d'ouverture d'exercice : libellé ambigu
Amélioration esthétique & ergonomie
---
include/opening.inc.php | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/include/opening.inc.php b/include/opening.inc.php
index 43ee412..846ef9b 100644
--- a/include/opening.inc.php
+++ b/include/opening.inc.php
@@ -154,7 +154,7 @@ if ($sa=='step2')
'<div><h1 class="legend">'._('Etape 2 : période').'</h1>'.
'<h2 class="info">'.dossier::name($_REQUEST['f']).'</h2>'.
'<form class="print" method="post">'.
- _("Choisissez l'exercice du dossier à reporter pour les a-nouveaux");
+ _("Choisissez l'exercice clôturé (exercice N-1) du dossier à reporter pour
les a-nouveaux (exercice N)");
echo dossier::hidden();
echo HtmlInput::hidden('ac', $_REQUEST['ac']);
echo HtmlInput::hidden('sa', 'step3');
@@ -168,7 +168,9 @@ if ($sa=='step2')
$w->value=$periode;
$w->name="p_periode";
$w->selected=$g_user->get_exercice()-1;
+ echo "<p>";
echo _('Période').' : '.$w->input();
+ echo "</p>";
echo HtmlInput::submit('ok', _('Continuer'));
echo dossier::hidden();
echo "</form>";
@@ -223,11 +225,11 @@ if ($sa=='step4')
$dossier_id=$http->request("f","number");
$p_periode=$http->request("p_periode","number");
$p_jrn=$http->request("p_jrn","number");
-
$cn_target=new Database($dossier_id);
$saldo=new Acc_Ledger($cn_target, 0);
$array=$saldo->get_saldo_exercice($p_periode);
/* we need to transform the array into a Acc_Ledger array */
+
$result=array();
$result['desc']=sprintf(_("Ecriture d'ouverture
%d"),$g_user->get_exercice());
$result['nb_item']=sizeof($array);
@@ -235,6 +237,12 @@ if ($sa=='step4')
$result["ac"]=$http->request("ac");
$result['p_periode']=$p_periode;
$result['gDossier']=Dossier::id();
+
+ // default date = first day of Exercice
+ $periode=new Periode($cn,$g_user->get_periode());
+
list($periode_start,$periode_end)=$periode->get_limit($g_user->get_exercice());
+ $result["e_date"]=$periode_start->first_day();
+
$idx=0;
foreach ($array as $row)
@@ -255,6 +263,7 @@ if ($sa=='step4')
$jrn=new Acc_Ledger($cn,$p_jrn);
$_POST=$result;
+ $_REQUEST=$result;
$ledger=new Acc_Ledger($cn, $p_jrn);
require_once NOALYSS_INCLUDE.'/operation_ods_new.inc.php';
- [Noalyss-commit] [noalyss] 40/219: Test : utilisation nouvelle police nouveau theme Stock... Correction bug http_input SQL : correction table jnt_letter , col. inutile, (continued)
- [Noalyss-commit] [noalyss] 40/219: Test : utilisation nouvelle police nouveau theme Stock... Correction bug http_input SQL : correction table jnt_letter , col. inutile, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 86/219: Improve appearance, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 150/219: HttpInput: Exception if the type is not known, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 98/219: esthetic change icon, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 141/219: CSS Esthetic : comment span or IText can have the CSSclass label_item, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 117/219: Task #0001297: Perfectionnement menu COMPTA/ADV/OPEN remove dead code, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 35/219: Task #0001415: Lettrage - masquer la mise en évidence. Click a second time of an reconciliation and the highlight disappear, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 153/219: HtmlInput: fix small bug in fct image_click, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 158/219: Fix issue with open_basedir, sometime set in the server config, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 148/219: ANC : esthetic ; remove inline CSS, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 156/219: Task #1489: Procédure d'ouverture d'exercice : libellé ambigu Amélioration esthétique & ergonomie,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 77/219: PRINTJRN : enlève num opération, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 145/219: ANC : Bouton "recherche" sont des loupes, ajout title, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 168/219: Task #1476 : prevent the use of some accounting Code cleaning , remove obsolete files, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 161/219: Noalyss_SQL :: count add a space, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 107/219: task #0001272: Rendre possible l'appel de la calculatrice depuis le fin fond d'une page., Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 164/219: Code cleaning : remove obsolete, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 83/219: NUM_FIELD = 40, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 129/219: Anc ODS : esthetic search analytic accounting, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 188/219: Plan Comptable : max longueur du poste = 40, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 69/219: HttpInput : do not use in_array but array_key_exists,, Dany De Bontridder, 2017/12/18