extends class_anc_grandlivre
More...
extends class_anc_grandlivre
- Author
- dany
Definition at line 27 of file class_anc_grandlivre_ext.php.
Anc_Grandlivre_Ext::button_export_pdf |
( |
|
$p_string = "" | ) |
|
Show the button to export in PDF all the receipt.
- Parameters
-
$p_string | extra hidden value |
- Returns
- string with the button
Definition at line 63 of file class_anc_grandlivre_ext.php.
References $r.
66 $r.= HtmlInput::hidden(
"to", $this->to);
67 $r.= HtmlInput::hidden(
"from", $this->from);
68 $r.= HtmlInput::hidden(
"pa_id", $this->pa_id);
69 $r.= HtmlInput::hidden(
"from_poste", $this->from_poste);
70 $r.= HtmlInput::hidden(
"to_poste", $this->to_poste);
72 $r.= dossier::hidden();
73 $r.=HtmlInput::submit(
'bt_receipt_anal_pdf', _(
"Export des pièces en PDF"));
Anc_Grandlivre_Ext::display_html |
( |
| ) |
|
compute the html display
- Returns
- string
Definition at line 84 of file class_anc_grandlivre_ext.php.
References $array, $ck, $class, $detail, $r, and $row.
89 if (is_array(
$array) ==
false)
96 $r.= _(
"aucune donnée");
99 $r.=
'<table class="result" style="width=100%">';
103 $tot_deb = $tot_cred = 0;
107 if ($prev != $row[
'po_name'])
112 $tot_solde = bcsub($tot_cred, $tot_deb);
113 $sign = ($tot_solde > 0) ?
'C' :
'D';
114 $r.=td(
'') . td(
'') . td(
'') . td(
'') . td(
'') . td(nbm($tot_deb),
' class="num"') . td(nbm($tot_cred),
' class="num"') . td(nbm($tot_solde) . $sign,
' class="num"');
116 $r.=
'<tr>' .
'<td colspan="7" style="width:auto">' .
'<h2>' . h($row[
'po_name'] .
' ' . $row[
'po_description']) .
'</td></tr>';
119 '<th>' . _(
'Date') .
'</th>' .
120 '<th>' . _(
'Poste') .
'</th>' .
121 '<th>' . _(
'Quick_code') .
'</th>' .
122 '<th>' . _(
'Libellé') .
'</th>' .
123 '<th>' . _(
'Document') .
'</th>' .
124 '<th>' . _(
'Pièce') .
'</th>' .
125 '<th>' . _(
'Num.interne') .
'</th>' .
126 '<th style="text-align:right">' . _(
'Debit') .
'</th>' .
127 '<th style="text-align:right">' . _(
'Credit') .
'</th>' .
130 $tot_deb = $tot_cred = 0;
131 $prev = $row[
'po_name'];
134 $class = ($idx % 2 == 0) ?
'even' :
'odd';
137 $detail = ($row[
'jr_id'] != null) ? HtmlInput::detail_op($row[
'jr_id'], $row[
'jr_internal']) :
'';
138 $post_detail = ($row[
'j_poste'] != null) ? HtmlInput::history_account($row[
'j_poste'], $row[
'j_poste']) :
'';
139 $card_detail = ($row[
'f_id'] != null) ? HtmlInput::history_card($row[
'f_id'], $row[
'qcode']) :
'';
140 $amount_deb = ($row[
'oa_debit'] ==
't') ? $row[
'oa_amount'] : 0;
141 $amount_cred = ($row[
'oa_debit'] ==
'f') ? $row[
'oa_amount'] : 0;
142 $tot_deb = bcadd($tot_deb, $amount_deb);
143 $tot_cred = bcadd($tot_cred, $amount_cred);
150 if ($row[
'jr_id'] != null)
155 $str_document = HtmlInput::show_receipt_document($row[
'jr_id']);
156 if ($str_document !=
"")
158 $ck =
new ICheckBox(
'ck[]', $row[
'jr_id']);
159 $str_ck =
$ck->input();
164 '<td>' . $str_ck .
'</td>' .
165 '<td>' . $row[
'oa_date'] .
'</td>' .
168 td($row[
'jr_comment']) .
169 '<td>' . $str_document .
'</td>' .
170 td($row[
'jr_pj_number']) .
172 '<td class="num">' . nbm($amount_deb) .
'</td>' .
173 '<td class="num">' . nbm($amount_cred)
178 $tot_solde = bcsub($tot_cred, $tot_deb);
179 $sign = ($tot_solde > 0) ?
'C' :
'D';
180 $r.=td(
'') . td(
'') . td(
'') . td(
'') . td(
'') . td(nbm($tot_deb),
' class="num"') . td(nbm($tot_cred),
' class="num"') . td(nbm($tot_solde) . $sign,
' class="num"');
for($i=0;$i< Database::num_row($ret);$i++) $row
if(isset($_POST['remove'])) $array
Anc_Grandlivre_Ext::show_button |
( |
|
$p_string = "" | ) |
|
Show the button to export in PDF or CSV.
- Parameters
-
$url_csv | url of the csv |
$url_pdf | url of the pdf |
$p_string | hidden data to include in the form |
- Returns
- string with the button
Definition at line 39 of file class_anc_grandlivre_ext.php.
References $r.
42 $r.=
'<form method="GET" action="export.php" style="display:inline">';
43 $r.= HtmlInput::hidden(
"act",
"CSV:AncGrandLivre");
44 $r.= HtmlInput::hidden(
"to", $this->to);
45 $r.= HtmlInput::hidden(
"from", $this->from);
46 $r.= HtmlInput::hidden(
"pa_id", $this->pa_id);
47 $r.= HtmlInput::hidden(
"from_poste", $this->from_poste);
48 $r.= HtmlInput::hidden(
"to_poste", $this->to_poste);
50 $r.= dossier::hidden();
51 $r.=HtmlInput::submit(
'bt_csv',
"Export en CSV");
The documentation for this class was generated from the following file: