Category Aged Balance add a start date
This commit is contained in:
parent
3f6a2b01c2
commit
1c6a5f7713
1 changed files with 21 additions and 6 deletions
|
|
@ -25,22 +25,37 @@ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
|
|||
* @brief Aged Balance for card
|
||||
*@see 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>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue