[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 264/323: Category Aged Balance add a start da
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 264/323: Category Aged Balance add a start date |
Date: |
Wed, 14 Mar 2018 17:39:02 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 1c6a5f7713bb3f4a06f74d2f205a67caa0c2a076
Author: Dany De Bontridder <address@hidden>
Date: Sat Feb 24 16:33:52 2018 +0100
Category Aged Balance add a start date
---
include/balance_card_ageing.inc.php | 27 +++++++++++++++++++++------
1 file changed, 21 insertions(+), 6 deletions(-)
diff --git a/include/balance_card_ageing.inc.php
b/include/balance_card_ageing.inc.php
index 218b6d7..9a65718 100644
--- a/include/balance_card_ageing.inc.php
+++ b/include/balance_card_ageing.inc.php
@@ -25,22 +25,37 @@ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas
permis');
* @brief Aged Balance for card
address@hidden Balance_Age
*/
+require_once NOALYSS_INCLUDE.'/class/fiche.class.php';
require_once NOALYSS_INCLUDE.'/class/exercice.class.php';
+require_once NOALYSS_INCLUDE.'/class/periode.class.php';
require_once NOALYSS_INCLUDE.'/class/balance_age.class.php';
$let=( isset ($_GET['p_let']))?'let':'unlet';
+// f_id
+$f_id=$http->get('f_id',"number");
+
+// Default date
+$periode_user=$g_user->get_periode();
+$periode=new Periode($cn,$periode_user);
+$default_date=$periode->first_day();
+
+// Input date
+$idate=new IDate("date_balag");
+$idate->value=$http->get("date_balag","date",$default_date);
+
$export_csv = '<FORM METHOD="get" ACTION="export.php" style="display:inline">';
-$export_csv .=HtmlInput::request_to_hidden(array('gDossier','ac',));
-$export_csv.=HtmlInput::hidden('p_date_start', '01.01.2000');
+$export_csv
.=HtmlInput::request_to_hidden(array('gDossier','ac','date_balag'));
+$export_csv.=HtmlInput::hidden('p_date_start',$idate->value);
$export_csv .= HtmlInput::hidden('act','CSV:balance_age');
$export_csv .= HtmlInput::hidden('p_let',$let);
$export_csv .= HtmlInput::hidden('p_type','U');
-$export_csv .= HtmlInput::hidden('fiche',$_GET['f_id']);
+$export_csv .= HtmlInput::hidden('fiche',$f_id);
$export_csv .= HtmlInput::submit('csv',_('Export CSV'));
$export_csv.='</FORM>';
?>
<form method="get">
- <?php echo "Tout" ?><input type="checkbox" name="p_let" value="1">
+ <?php echo _("Tout") ?><input type="checkbox" name="p_let" value="1">
+ <?php echo _("Date")?> <?php echo $idate->input();?>
<?php echo
HtmlInput::request_to_hidden(array('ac','gDossier','sb','sc','f_id'));?>
<input type="submit" class="smallbutton" value="<?php echo _('Valider')?>">
</form>
@@ -48,9 +63,9 @@ $export_csv.='</FORM>';
echo '<div class="content" style="width:98%;margin-left:1%">';
echo $export_csv;
-$fiche=new Fiche($cn,$_GET['f_id']);
+$fiche=new Fiche($cn,$f_id);
$bal=new Balance_Age($cn);
-$bal->display_card('01.01.2000', $fiche->id, $let);
+$bal->display_card($idate->value, $fiche->id, $let);
echo $export_csv;
echo '</div>';
- [Noalyss-commit] [noalyss] 215/323: Plugin : fix doc, (continued)
- [Noalyss-commit] [noalyss] 215/323: Plugin : fix doc, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 213/323: Plugin : fix indent, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 234/323: Fix warning, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 230/323: index.css : CSS responsive, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 249/323: SQL Patch : correct syntax for new version, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 252/323: PLANANC : fix bug when creating first plan, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 226/323: Dashboard : remove dead code, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 217/323: Periode : fix bug, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 208/323: Missing file, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 233/323: Backward comptability for SQL function, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 264/323: Category Aged Balance add a start date,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 269/323: typo, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 270/323: check if open_basedir is empty, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 170/323: indent, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 207/323: Missing file, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 236/323: Merge tag 'rel6920', Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 175/323: Manage_Table_SQL : Improve Documentation + add function count_error, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 214/323: Plugin : fix indent, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 184/323: missing file, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 260/323: esthetic, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 311/323: Follow-up fix small bug with ag_ref, Dany De Bontridder, 2018/03/14