20if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
35echo
'<div class="content">';
37echo
'<FORM action="?" METHOD="GET" onsubmit="waiting_box();return true;">';
40echo dossier::hidden();
68$to_poste->set_attribute(
'account',
'to_poste');
82echo
td(_(
'Uniquement les opérations non lettrées'));
87echo
td(_(
'Uniquement les comptes non soldés'));
109 echo
'<div class="content">';
116 }
catch (Exception
$e) {
117 echo
alert(_(
'Date malformée, désolée'));
130 echo
'<div class="content">';
133 echo
'<table class="result">';
143 if ( empty($acc_account_ledger->row))
150 <td colspan="8" style="width:auto">
151 <h2 class="">'. $accounting_id[
'pcm_val'].
' '.
h($accounting_id[
'pcm_lib']).
'</h2>
157 <td>Référence</td>
158 <td>Libellé</td>
159 <td>Pièce</td>
161 <td align="right">Débit</td>
162 <td align="right">Crédit</td>
163 <td align="right">Solde</td>
164 <td align="right">Let.</td>
174 foreach ($acc_account_ledger->row as
$detail)
182 echo
'<tr class="highlight">
183 <td>'.$current_exercice.
'</td>
185 <td>'._(
"Total du compte").$accounting_id[
'pcm_val'].
'</td>
186 <td>'.
''.
'</td>'.
td(
"").
187 '<td align="right">'.($solde_d > 0 ?
nbm( $solde_d) :
'').
'</td>
188 <td align="right">'.($solde_c > 0 ?
nbm( $solde_c) :
'').
'</td>
189 <td align="right">'.
nbm( abs($solde_c-$solde_d)).
'</td>
191 if ($solde_c > $solde_d ) echo _(
"Crédit");
192 if ($solde_c < $solde_d ) echo _(
"Débit");
193 if ($solde_c == $solde_d ) echo
" ";
208 if (
$detail[
'cred_montant'] > 0)
211 $solde_c=bcadd($solde_c,
$detail[
'cred_montant']);
213 if (
$detail[
'deb_montant'] > 0)
216 $solde_d = bcadd($solde_d,
$detail[
'deb_montant']);
218 $side=
" ".$acc_account_ledger->get_amount_side(
$solde);
227 echo
'<tr name="tr_'.$letter.
'_" class="'.
$class.
'">
228 <td>'.
$detail[
'j_date_fmt'].
'</td>
230 <td>'.
$detail[
'description'].
'</td>
231 <td>'.
$detail[
'jr_pj_number'].
'</td>
232 <td>'.
$detail[
'jr_optype'].
'</td>
233 <td align="right">'.(
$detail[
'deb_montant'] > 0 ?
nbm(
$detail[
'deb_montant']) :
'').
'</td>
234 <td align="right">'.(
$detail[
'cred_montant'] > 0 ?
nbm(
$detail[
'cred_montant']) :
'').
'</td>
236 <td style="text-align:right;color:red">'.$html_let.
'</td>
239 echo
'<tr class="highlight">
240 <td>'.$current_exercice.
'</td>
242 <td>'.
'<b>'.
'Total du compte '.$accounting_id[
'pcm_val'].
'</b>'.
'</td>
243 <td>'.
''.
'</td>'.td(
"").
244 '<td align="right">'.
'<b>'.($solde_d > 0 ?
nbm( $solde_d) :
'').
'</b>'.
'</td>
245 <td align="right">'.
'<b>'.($solde_c > 0 ?
nbm( $solde_c) :
'').
'</b>'.
'</td>
246 <td align="right">'.
'<b>'.
nbm( abs($solde_c-$solde_d)).
'</b>'.
'</td>
248 if ($solde_c > $solde_d ) echo
"Crédit";
249 if ($solde_c < $solde_d ) echo
"Débit";
250 if ($solde_c == $solde_d ) echo
"=";
258 if (DEBUGNOALYSS> 1) echo \Noalyss\Dbg::hidden_info(
"\$acc_account_ledger", $acc_account_ledger);
echo_warning($p_string)
warns
td($p_string='', $p_extra='')
surround the string with td
nbm($p_number, $p_dec=2)
format the number with a sep.
alert($p_msg, $buffer=false)
alert in javascript
h( $row[ 'oa_description'])
Manage the account from the table jrn, jrnx or tmp_pcmn.
static get_used_accounting($from_date, $to_date, $from_accounting, $to_accounting)
static HtmlTableHeader($actiontarget="poste")
Display HTML Table Header (button)
Html Input : Input a date format dd.mm.yyyy The property title should be set to indicate what it is e...
show a button, for selecting a account and a input text for manually inserting an account the differe...
static timer_start()
start a timer
static timer_show()
stop the timer and show the elapsed time, it is used for optimising the code
For the periode tables parm_periode and jrn_periode.