[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 148/323: Fix : ajax_history : history of acco
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 148/323: Fix : ajax_history : history of accounting , exercice was not set |
Date: |
Wed, 14 Mar 2018 17:38:41 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 3fa0f3b03a06ba276a348c3bcfa29d98b1b6953c
Author: Dany De Bontridder <address@hidden>
Date: Wed Feb 7 19:44:07 2018 +0100
Fix : ajax_history : history of accounting , exercice was not set
---
include/ajax/ajax_history.php | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/include/ajax/ajax_history.php b/include/ajax/ajax_history.php
index 128fc6d..f3fb23b 100644
--- a/include/ajax/ajax_history.php
+++ b/include/ajax/ajax_history.php
@@ -53,8 +53,10 @@ if ( isset($_GET['f_id']))
$f_id=$http->get('f_id',"number");
$fiche=new Fiche($cn,$f_id);
- $year=$http->get("exercice","string",$g_user->get_exercice());
- if ( $year == 0 )
+ $year=$http->get("exercice","string","");
+ if ( $year == "") $year=$g_user->get_exercice();
+
+ if ( $year == "" )
{
$html=_("erreur aucune période par défaut, allez dans préférence pour
en choisir une");
}
@@ -137,7 +139,8 @@ if ( isset($_REQUEST['pcm_val']))
{
$poste=new Acc_Account_Ledger($cn,$_REQUEST['pcm_val']);
$poste->load();
- $year=$http->get("exercice","string",$g_user->get_exercice());
+ $year=$http->get("exercice","string","");
+ if ( $year == "") $year=$g_user->get_exercice();
if ( $year == 0 )
{
$html=_("erreur aucune période par défaut, allez dans préférence pour
en choisir une");
- [Noalyss-commit] [noalyss] 138/323: CSS : reduce height menu, (continued)
- [Noalyss-commit] [noalyss] 138/323: CSS : reduce height menu, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 137/323: SQL upgrate : problem with sequence bilan, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 136/323: SQL upgrate : drop trigger before update, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 139/323: Bug : ANC ND VAT not computed, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 141/323: Set version, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 144/323: merge rel6919.9, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 140/323: Bug : ANC ND VAT not computed, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 142/323: set version, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 149/323: Fix : duplicate id (exercice), Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 143/323: set version, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 148/323: Fix : ajax_history : history of accounting , exercice was not set,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 150/323: Fix : PRINTJRN export CSV $Jrn used before created, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 153/323: FIX : PRINTJRN, ledger PDF, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 152/323: FIX : PRINTJRN, ledger, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 151/323: CSS : improve classic7, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 156/323: Improve : Exercice suivit par mois puis année, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 147/323: Logo : install / index, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 65/323: Task #0001530: Réécriture PRINTJRN, Base + Sale, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 155/323: Improve : last exercice in first place, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 157/323: typo, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 146/323: Ergonomy : ask exercice and periode separately in preference, Dany De Bontridder, 2018/03/14