36 echo
'<form method="get">';
37 $r=parent::display_form($p_string);
49 parent::get_request();
72 $r.=_(
'Cherche').HtmlInput::filter_table(
"tb_anchop",
'0,1,2,3,4,5,6,7',1);
73 $r.=
'<table id="tb_anchop" class="sortable" >';
75 '<th class=" sorttable_sorted">'._(
'Date').
'</th>'.
76 '<th>'._(
'Poste').
'</th>'.
77 '<th>'._(
'Quick_code').
'</th>'.
78 '<th>'._(
'Analytique').
'</th>'.
80 '<th>'._(
'libelle').
'</th>'.
81 '<th>'._(
'Num.interne').
'</th>'.
82 '<th>'._(
'Montant').
'</th>'.
83 '<th>'._(
'D/C').
'</th>'.
89 $r.=
'<tr class="'.$class.
'">';
95 '<td sorttable_customkey="'.$row[
'str_order_date'].
'">'.
$row[
'oa_date'].
'</td>'.
96 td($post_detail,
' sorttable_customkey="X'.
$row[
'j_poste'].
'"').
98 '<td>'.HtmlInput::history_anc_account(
$row[
'po_id'],
h(
$row[
'po_name'])).
'</td>'.
99 '<td>'.h(
$row[
'oa_description']).
'</td>'.
101 '<td>'.$detail.
'</td>'.
102 '<td class="num" sorttable_customkey="'.$row[
'oa_amount'].
'">'.
nbm(
$row[
'oa_amount']).
'</td>'.
103 '<td>'.(($row[
'oa_debit']==
'f')?
'C':
'D').
'</td>';
112 echo
'<ol style="list-style:none">';
113 echo
'<li>'._(
'Total').
" ".
nbm(
$deb).
' D '.
'</li>';
114 echo
'<li>'._(
'Total').
" ".
nbm(
$cred).
' C '.
'</li>';
123 $r_solde=ob_get_clean();
143 $this->has_data=count(
$array);
155 if ( empty(
$array) ==
true )
162 $csv->write_header(array(
"Date",
"Poste",
"QuickCode",
163 "Activité",
"interne",
"pièce",
"description",
"montant",
"d/c"));
174 $csv->add(
$row[
'oa_amount'],
"number");
175 $csv->add(sprintf(
"'%s'",((
$row[
'oa_debit']==
'f')?
'CREDIT':
'DEBIT')));
210 $r.=
'<form method="GET" action="export.php" style="display:inline">';
219 $r.= dossier::hidden();
th($p_string, $p_extra='', $raw='')
findSide($p_number)
return D if the number is smaller than 0 , C if bigger and an empty string if equal to 0.
td($p_string='', $p_extra='')
surround the string with td
nbm($p_number, $p_dec=2)
format the number with a sep.
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
h( $row[ 'oa_description'])
$anc_grandlivre from_poste
show_button($p_string='')
show the export button to pdf and CSV
static test_me()
debugging and test function for dev. only
display_csv()
Compute the csv export.
get_request()
complete the object with the data in $_REQUEST
display_html()
compute the html display
load()
load the data from the database
display_form($p_string="")
Compute the form to display.
this class is used to show the form for entering an operation only FOR analytic operation to save it,...
this class is the mother class for the CA printing
Manage the CSV : manage files and write CSV record.
for($i=0;$i< $nb_jrn;$i++) $deb