if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); global $http; /** *@file *@brief Print the aged balance for accountancy see * @see Balance_Age */ $type=$http->get('p_type','string','C'); $let=$http->get('p_let','string','unlet'); $date_start=$http->get('p_date_start','string', '01.01.'.$g_user->get_exercice()); $w_date_start=new IDate('p_date_start',$date_start); $w_select=new ISelect('p_type'); $w_select->value=array( array('value'=>'C','label'=>_('Client')), array('value'=>'F','label'=>_('Fournisseur')) ); $w_select->selected=$type; $w_lettre=new ISelect('p_let'); $w_lettre->value=array( array('value'=>'let','label'=>_('lettrées et non lettrées')), array('value'=>'unlet','label'=>_('non lettrées')) ); $w_lettre->selected=$let; ?>
display_sale($date_start,$let); else: $balance->display_purchase($date_start,$let); endif; ?>