5require_once NOALYSS_TEMPLATE.
'/ledger_detail_top.php';
15<div
class=
"content" style=
"padding:0">
18<form
class=
"print" onsubmit=
"return op_save(this);">
31 $date->setReadOnly(
true);
34 echo
td(_(
'Date')).td(
$date->input());
44 $itext->value=strip_tags(
$obj->det->jr_comment??
"");
46 echo
td(_(
'Libellé')).td(
$itext->input());
54 <?php echo
td(_(
'Montant')).td(
nbm(
$obj->det->jr_montant),
' class="inum"');?>
63 $itext->value=strip_tags(
$obj->det->jr_pj_number??
"");
64 echo
td(_(
'Pièce')).td(
$itext->input());
70 <
td style=
"width:50%;height:100%;vertical-align:top;text-align: center">
71 <
table style=
"width:99%;height:8rem;vertical-align:top;">
73 <
td style=
"text-align:center;vertical-align: top">
77 <
td style=
"text-align:center;vertical-align: top">
80 $inote->style=
' class="itextarea" style="width:90%;height:100%;"';
89 <div
id=
"operation_tag_td<?=$div?>">
113<div
class=
"myfieldset">
117<
table class=
"result">
120 echo
th(_(
'Poste Comptable'));
121 echo
th(_(
'Quick Code'));
122 echo
th(_(
'Libellé'));
123 echo
th(_(
'Débit'),
'style="text-align:right"');
124 echo
th(_(
'Crédit'),
'style="text-align:right"');
125 if (
$obj->det->currency_id != 0 ) {
126 echo
th(_(
"Devise"),
' class="num" ');
129 if (
$owner->MY_ANALYTIC !=
'nu' ){
131 $a_anc=
$anc->get_list(
' order by pa_id ');
134 $str_anc.=
'<tr><th>Code</th><th>Poste</th><th>Montant</th><th colspan="' . $x .
'">' . _(
'Compt. Analytique') .
'</th>';
146 if (
$q[
$e][
'j_qcode'] !=
'') {
154 $l_lib =
$q[
$e][
'j_text'] ;
158 $l_lib=
$q[
$e][
'j_text'];
160 else if (
$q[
$e][
'j_qcode'] !=
'') {
163 $ff->get_by_qcode(
$q[
$e][
'j_qcode']);
167 $name=
$cn->get_value(
'select pcm_lib from tmp_pcmn where pcm_val=$1',array(
$q[
$e][
'j_poste']));
170 $l_lib=strip_tags($l_lib);
171 if (
$owner->MY_UPDLAB ==
'Y')
184 $montant=
td(
nbm(
$q[
$e][
'j_montant']),
'class="num"');
185 $row.=(
$q[
$e][
'j_debit']==
't')?$montant:
td(
'');
186 $row.=(
$q[
$e][
'j_debit']==
'f')?$montant:
td(
'');
190 if (
$obj->det->currency_id != 0 &&
$q[
$e][
'j_debit']==
'f' ) {
191 $value=
$obj->db->get_value(
"select oc_amount+oc_vat_amount from operation_currency where j_id=$1",[
$q[
$e][
'j_id']]);
196 if (
$owner->MY_ANALYTIC !=
"nu" ){
201 $anc_op->j_id=
$q[
$e][
'j_id'];
202 $anc_op->in_div=
$div;
203 $side=(
$q[
$e][
'j_debit'] ==
'f')?
'C':
'D';
217 $class=(
$e%2==0)?
' class="even"':
'class="odd"';
218 if (
$obj->det->currency_id != 0 ) {
219 $cur_amount=
$cn->get_value(
"select oc_amount from operation_currency where j_id=$1",
221 $row.=
td(
nbm($cur_amount,2),
' class="num" ');
233 if (
$obj->det->currency_id !=
"" &&
$obj->det->currency_id > 0)
236 $four_space=
" ".
" ".
" ".
" ";
239 echo _(
"Taux utilisé"),
" ",
nbm(
$obj->det->currency_rate,4),$four_space;
240 echo _(
"Taux Réf"),
" ",
nbm(
$obj->det->currency_rate_ref,4).$four_space;
247require_once NOALYSS_TEMPLATE.
'/ledger_detail_bottom.php';
format_date($p_date, $p_from_format='YYYY-MM-DD', $p_to_format='DD.MM.YYYY')
format the date, when taken from the database the format is MM-DD-YYYY
th($p_string, $p_extra='', $raw='')
tr($p_string, $p_extra='')
td($p_string='', $p_extra='')
surround the string with td
nbm($p_number, $p_dec=2)
format the number with a sep.
global $g_user
if no group available , then stop
display currency , convert to euro , and save them if used.
this class is used to show the form for entering an operation only FOR analytic operation to save it,...
Concerns the Analytic plan (table plan_analytique)
static hidden($p_array)
return an HTML string containing hidden input type to hold the differant PA_ID
define Class fiche and fiche def, those class are using class attribut. When adding or modifing new c...
Html Input : Input a date format dd.mm.yyyy The property title should be set to indicate what it is e...
Manage the TEXTAREA html element.
Class to manage the company parameter (address, name...)
For the periode tables parm_periode and jrn_periode.
concerns the tags linked to an accountancy writing
static button_search($p_jr, $p_div)
Show a button to select tag for Search.