[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 116/219: Task #0001297: Perfectionnement menu
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 116/219: Task #0001297: Perfectionnement menu COMPTA/ADV/OPEN |
Date: |
Mon, 18 Dec 2017 13:22:47 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 80b072c0831ab3760cb40a5a1f0c22b970f97c03
Author: Dany De Bontridder <address@hidden>
Date: Tue Oct 31 23:11:22 2017 +0100
Task #0001297: Perfectionnement menu COMPTA/ADV/OPEN
---
include/opening.inc.php | 41 +++++++++++++++++++++++++++--------------
1 file changed, 27 insertions(+), 14 deletions(-)
diff --git a/include/opening.inc.php b/include/opening.inc.php
index 217d254..2af9a21 100644
--- a/include/opening.inc.php
+++ b/include/opening.inc.php
@@ -109,7 +109,7 @@ if ($sa=='')
{
echo '<div class="content">';
- echo '<h1 class="legend"> Etape 1 </h1>';
+ echo '<h1 class="legend">'._("Etape 1 : choix du dossier").' </h1>';
echo _('Choisissez le dossier où sont les soldes à importer');
$avail=$g_user->get_available_folder();
@@ -133,9 +133,10 @@ if ($sa=='')
$array[$i]['label']=$r['dos_name'];
$i++;
}
-
+ $wAvail->selected=Dossier::id();
$wAvail->value=$array;
- echo 'Choix du dossier :'.$wAvail->input('f');
+ printf (_('Choix du dossier : %s'),
+ $wAvail->input('f'));
echo HtmlInput::submit('ok', _('Continuer'));
echo '</form>';
@@ -150,7 +151,7 @@ $back='do.php?ac='.$http->request("ac").'&'.dossier::get();
if ($sa=='step2')
{
echo '<div class="content">'.
- '<div><h1 class="legend">Etape 2</h1>'.
+ '<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");
@@ -166,6 +167,7 @@ if ($sa=='step2')
$w->readonly=false;
$w->value=$periode;
$w->name="p_periode";
+ $w->selected=$g_user->get_exercice()-1;
echo _('Période').' : '.$w->input();
echo HtmlInput::submit('ok', _('Continuer'));
echo dossier::hidden();
@@ -217,15 +219,22 @@ if ($sa=='step3')
if ($sa=='step4')
{
echo '<div class="content">';
- echo '<div><h1 class="legend"> Dernière étape</h1>';
- $cn_target=new Database($_REQUEST['f']);
+ echo '<div><h1 class="legend">'._("étape 4").'</h1>';
+ $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($_REQUEST['p_periode']);
+ $array=$saldo->get_saldo_exercice($p_periode);
/* we need to transform the array into a Acc_Ledger array */
$result=array();
- $result['desc']='Ecriture d\'ouverture';
+ $result['desc']=_("Ecriture d'ouverture");
$result['nb_item']=sizeof($array);
- $result['p_jrn']=$_REQUEST['p_jrn'];
+ $result['p_jrn']=$p_jrn;
+ $result["ac"]=$http->request("ac");
+ $result['p_periode']=$p_periode;
+ $result['gDossier']=Dossier::id();
$idx=0;
foreach ($array as $row)
@@ -244,9 +253,12 @@ if ($sa=='step4')
}
$cn=Dossier::connect();
- $jrn=new Acc_Ledger($cn, $_REQUEST['p_jrn']);
-
- echo '<form class="print" method="post">';
+ $jrn=new Acc_Ledger($cn,$p_jrn);
+ $_POST=$result;
+ $ledger=new Acc_Ledger($cn, $p_jrn);
+ require_once NOALYSS_INCLUDE.'/operation_ods_new.inc.php';
+
+ /*echo '<form class="print" method="post">';
echo HtmlInput::hidden('ac', $_REQUEST['ac']);
echo HtmlInput::hidden('sa', 'step5');
echo HtmlInput::hidden('f', $_REQUEST['f']);
@@ -258,7 +270,7 @@ if ($sa=='step4')
echo '<h2 class="notice">'._("Ne corrigez pas encore, cliquez continuer
pour passer à l'étape suivante").'</h2>';
echo HtmlInput::submit('correct_it', _('Continuer'));
echo '</form>';
- echo HtmlInput::button_anchor(_('Retour'), $back);
+ echo HtmlInput::button_anchor(_('Retour'), $back);*/
echo '</div>';
}
@@ -266,7 +278,8 @@ if ($sa=='step4')
//
if ($_REQUEST['sa']=='step5')
{
- $ledger=new Acc_Ledger($cn, $_REQUEST['p_jrn']);
+ $p_jrn=$http->request("p_jrn","number");
+ $ledger=new Acc_Ledger($cn, $p_jrn);
require_once NOALYSS_INCLUDE.'/operation_ods_new.inc.php';
}
- [Noalyss-commit] [noalyss] 49/219: improve esthetic, (continued)
- [Noalyss-commit] [noalyss] 49/219: improve esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 136/219: Infobulle : avoid that the info balloon exceed limit of the display, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 24/219: Code improve : Replace HtmlInput::generate_id obsolete , fix bug in the filter for detail history, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 171/219: remove useless, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 61/219: Inplace_Edit : improve button + test, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 124/219: indentation, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 21/219: Improve debugging and improve manage_table_sql element will be added at the right place Manage_Table_SQL can work also with a SQL query or a view Icon place can be modified, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 34/219: rename scenario files, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 31/219: Task #0001443: opérations rapprochées : bug quand on utilise des tva avec autoliquidation Documentation, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 63/219: Analytic : change the name and description in Ajax, improve esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 116/219: Task #0001297: Perfectionnement menu COMPTA/ADV/OPEN,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 56/219: Task #1469 : Les esperluettes ne passent pas dans les libellés pour «opération identique»., Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 189/219: Task #1506 Fiche : max longueur du poste comptable = 40, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 195/219: Task #001381 : favori de filtre , ajout des favoris de filtre dans les recherches., Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 71/219: Task #0001475: Todo note : il manque le bouton "Fermer", Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 146/219: ANC : ANC_TABLE replace PGPLSQL procedure by Php functions : Anc_Table:create_temp_account Anc_Table:create_temp_card, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 102/219: task #0001386: Amélioration visuelle plan comptable - postes utilisés Ajout lien si poste comptable utilisé, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 32/219: Task #0001426: Distinction dans l'affichage des historiques des OD: libellé + fiche Ajout des qcodes pour l'historique par poste Ajout des postes comptables pour l'historique par Fiche Ajout des tiers Fait aussi pour les export PDF & CSV, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 149/219: HttpInput: protect against injection, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 47/219: Task #0001462: CA - apostrophe non affichée Use of ManageTableSQL for improving adding , update and delete analytic accounting, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 29/219: Task #0001443: opérations rapprochées : bug quand on utilise des tva avec autoliquidation Esthetique show the autoreversed VAT, Dany De Bontridder, 2017/12/18