5require_once NOALYSS_TEMPLATE.
'/ledger_detail_top.php';
7 $cn=Dossier::connect();
25<form
class=
"print" onsubmit=
"return op_save(this);">
28 <?php echo HtmlInput::hidden(
'whatdiv',
$div).HtmlInput::hidden(
'jr_id',
$jr_id).dossier::hidden();?>
38 $date->setReadOnly(
true);
41 echo
td(
_(
'Date')).td(
$date->input());
51 $itext->value=strip_tags(
$obj->det->jr_comment??
"");
53 echo
td(
_(
'Libellé')).td(
$itext->input());
61 <?php echo
td(
_(
'Montant')).td(
nbm(
$obj->det->jr_montant),
' class="inum"');?>
70 $itext->value=strip_tags(
$obj->det->jr_pj_number??
"");
77 <
td style=
"width:50%;height:100%;vertical-align:top;text-align: center">
78 <
table style=
"width:99%;height:8rem;vertical-align:top;">
80 <
td style=
"text-align:center;vertical-align: top">
83 $inote->set_enrichText(
"minimal");
85 $inote->style=
' class="itextarea" style="width:90%;height:100%;"';
94 <div
id=
"operation_tag_td<?=$div?>">
118<div
class=
"myfieldset">
122<
table class=
"result">
125 echo
th(
_(
'Poste Comptable'));
126 echo
th(
_(
'Quick Code'));
127 echo
th(
_(
'Libellé'));
128 echo
th(
_(
'Débit'),
'style="text-align:right"');
129 echo
th(
_(
'Crédit'),
'style="text-align:right"');
130 if (
$obj->det->currency_id != 0 ) {
131 echo
th(
_(
"Devise"),
' class="num" ');
134 if (
$owner->MY_ANALYTIC !=
'nu' ){
136 $a_anc=
$anc->get_list(
' order by pa_id ');
139 $str_anc.=
'<tr><th>Code</th><th>Poste</th><th>Montant</th><th colspan="' .
$x .
'">' .
_(
'Compt. Analytique') .
'</th>';
148 $view_history = HtmlInput::history_account(
$q[
$e][
'j_poste'],
$q[
$e][
'j_poste'],
"",
$exercice);
151 if (
$q[
$e][
'j_qcode'] !=
'') {
159 $l_lib =
$q[
$e][
'j_text'] ;
163 $l_lib=
$q[
$e][
'j_text'];
165 else if (
$q[
$e][
'j_qcode'] !=
'') {
168 $ff->get_by_qcode(
$q[
$e][
'j_qcode']);
172 $name=
$cn->get_value(
'select pcm_lib from tmp_pcmn where pcm_val=$1',array(
$q[
$e][
'j_poste']));
175 $l_lib=strip_tags($l_lib);
176 if (
$owner->MY_UPDLAB ==
'Y')
189 $montant=
td(
nbm(
$q[
$e][
'j_montant']),
'class="num"');
190 $row.=(
$q[
$e][
'j_debit']==
't')?$montant:
td(
'');
191 $row.=(
$q[
$e][
'j_debit']==
'f')?$montant:
td(
'');
195 if (
$obj->det->currency_id != 0 &&
$q[
$e][
'j_debit']==
'f' ) {
196 $value=
$obj->db->get_value(
"select oc_amount+oc_vat_amount from operation_currency where j_id=$1",[
$q[
$e][
'j_id']]);
201 if (
$owner->MY_ANALYTIC !=
"nu" ){
206 $anc_op->j_id=
$q[
$e][
'j_id'];
207 $anc_op->in_div=
$div;
208 $side=(
$q[
$e][
'j_debit'] ==
'f')?
'C':
'D';
220 $class=(
$e%2==0)?
' class="even"':
'class="odd"';
221 if (
$obj->det->currency_id != 0 ) {
222 $cur_amount=
$cn->get_value(
"select oc_amount from operation_currency where j_id=$1",
224 $row.=
td(
nbm($cur_amount,2),
' class="num" ');
236 if (
$obj->det->currency_id !=
"" &&
$obj->det->currency_id > 0)
239 $four_space=
" ".
" ".
" ".
" ";
242 echo
_(
"Taux utilisé"),
" ",
nbm(
$obj->det->currency_rate,4),$four_space;
243 echo
_(
"Taux Réf"),
" ",
nbm(
$obj->det->currency_rate_ref,4).$four_space;
250require_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
catch(Exception $e) $exercice
_("actif, passif,charge,...")
$class
Display the Plugin and for each profile were it is installed or not.
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...)
concerns the tags linked to an accountancy writing
static button_search($p_jr, $p_div)
Show a button to select tag for Search.
$tag_operation
Tags on operation.