19$cn=Dossier::connect();
50$x=sprintf(
'id="%s_%s"',
"doc_supp",
$div);
60$a_tab[
'writing_div']=array(
'id'=>
'writing_div'.
$div,
'label'=>
_(
'Ecriture Comptable'),
'display'=>
'none');
61$a_tab[
'info_operation_div']=array(
'id'=>
'info_operation_div'.
$div,
'label'=>
_(
'Information'),
'display'=>
'none');
62$a_tab[
'linked_operation_div']=array(
'id'=>
'linked_operation_div'.
$div,
'label'=>
_(
'Opérations liées').
$str_nb_rap,
'display'=>
'none');
63$a_tab[
'document_operation_div']=array(
'id'=>
'document_operation_div'.
$div,
'label'=>
_(
'Document').
$str_nb_doc,
'display'=>
'block');
64$a_tab[
'linked_action_div']=array(
'id'=>
'linked_action_div'.
$div,
'label'=>
_(
'Actions Gestion').
$str_nb_fu,
'display'=>
'none');
65$a_tab[
'analytic_div']=array(
'id'=>
'analytic_div'.
$div,
'label'=>
_(
'Comptabilité Analytique'),
'display'=>
'none');
66$a_tab[
'supplemental_doc_div']=array(
'id'=>
'supplemental_doc_div'.
$div,
'label'=>
_(
'Documents supplémentaires').
$str_nb_sup_doc,
'display'=>
'none');
73if (
$div !=
"popup") :
74 $a_tab[
'document_operation_div'][
'display']=
'block';
78<input
type=
"hidden" id=
"<?=$div?>tab" value=
"<?=join(",
",$tabs)?>">
84 <li class=
"<?php echo $class?>">
86 <?php
if ( $div_tab_id ==
"supplemental_doc_div".
$div):?>
87 <a href=
"javascript:void(0)" onclick=
"unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected' ;Supplement_Document.refresh_list('<?=\Dossier::id()?>','<?=$div?>','<?=$obj->jr_id?>');show_tabs($F('<?=$div?>tab').split(','),'<?php echo $div_tab_id; ?>');"><?php echo
_(
$a_value[
'label'])?></a>
89 <a href=
"javascript:void(0)" onclick=
"unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected' ;show_tabs($F('<?=$div?>tab').split(','),'<?php echo $div_tab_id; ?>');"><?php echo
_(
$a_value[
'label'])?></a>
94<div
style=
"clear:both"></div>
108 <div
id=
"writing_div<?php echo $div;?>" class=
"myfieldset" style=
"display:<?php echo $a_tab['writing_div']['display']?>">
111 if (
$div ==
'popup') :
113 <
h1 class=
"legend"><?php echo
$a_tab[
'writing_div'][
'label']?></
h1>
120 <
table class=
"result">
123 echo
th(
_(
'Poste Comptable'));
124 echo
th(
_(
'Quick Code'));
125 echo
th(
_(
'Libellé'));
126 echo
th(
_(
'Débit'),
' style="text-align:right"');
127 echo
th(
_(
'Crédit'),
' style="text-align:right"');
133 $view_history = HtmlInput::history_account(
$q[
$e][
'j_poste'],
$q[
$e][
'j_poste'],
"",
$exercice);
136 if (
$q[
$e][
'j_qcode'] !=
'')
145 if (
$q[
$e][
'j_text']==
"")
147 if (
$q[
$e][
'j_qcode'] !=
'')
151 $ff->get_by_qcode(
$q[
$e][
'j_qcode']);
156 $name =
$cn->get_value(
'select pcm_lib from tmp_pcmn where pcm_val=$1', array(
$q[
$e][
'j_poste']));
163 $montant =
td(
nbm(
$q[
$e][
'j_montant']),
'class="num"');
164 $row.=(
$q[
$e][
'j_debit'] ==
't') ? $montant :
td(
'');
165 $row.=(
$q[
$e][
'j_debit'] ==
'f') ? $montant :
td(
'');
166 $class=(
$e%2==0)?
' class="even"':
'class="odd"';
174<div
id=
"info_operation_div<?php echo $div;?>" class=
"myfieldset" style=
"display:<?php echo $a_tab['info_operation_div']['display']?>">
177 if (
$div ==
'popup') :
179 <
h1 class=
"legend"><?php echo
$a_tab[
'info_operation_div'][
'label']?></
h1>
190 <?=
_(
"Type opération")?>
202<div
id=
"linked_operation_div<?php echo $div;?>" style=
"display:<?php echo $a_tab['linked_operation_div']['display']?>" class=
"myfieldset">
205 if (
$div ==
'popup') :
207 <
h1 class=
"legend"><?php echo
$a_tab[
'linked_operation_div'][
'label']?></
h1>
217 echo
'<table id="'.$tableid.
'">';
221 $internal=$opRap->get_internal();
222 $array_jr=
$cn->get_array(
'select jr_date,jr_pj_number,jr_montant,jr_comment , jr_internal ,jr_optype
223 from jrn where jr_id=$1',
225 $amount=$array_jr[0][
'jr_montant'];
226 switch (substr($array_jr[0][
'jr_internal'],0,1)) {
228 $amount =
$cn->get_value(
"select sum(qp_price+qp_vat+qp_nd_tva+qp_nd_tva_recup-qp_vat_sided) from quant_purchase qp
229 where qp_internal=$1",
236 $amount=
$cn->get_value(
"select sum(qs_price+qs_vat-qs_vat_sided) from quant_sold qs
237 where qs_internal=$1",
244 $total_rec=bcadd($total_rec,
$amount??0);
249 $js=
"return confirm_box(null,'"._(
"vous confirmez?").
"',";
250 $js.=sprintf(
'function () { dropLink(\'%s\',\'%s\',\'%s\',\'%s\');deleteRowRec(\'%s\',$(\'row%d\'));})',
263 $comment=strip_tags($array_jr[0][
'jr_comment']??
"");
264 $pj_nb=
h($array_jr[0][
'jr_pj_number']);
266 td(
'<a class="line" href="javascript:void(0)" onclick="'.
$str.
'" >'.$internal.
'</A>').
270 td(
_(
'delta').
'='.
nbm(bcsub(abs($amount_tva_include),abs($total_rec)))).
271 td($remove),
' id = "row'.
$e.
'"');
279 $wConcerned->amount_id=
$obj->det->jr_montant;
280 $wConcerned->div=
"search_reconcile";
281 $wConcerned->set_hideOperation(
$obj->jr_id);
282 echo $wConcerned->input();
287<div
id=
"linked_action_div<?php echo $div;?>" style=
"display:<?php echo $a_tab['linked_action_div']['display']?>" class=
"myfieldset">
290 if (
$div ==
'popup') :
292 <
h1 class=
"legend"><?php echo
$a_tab[
'linked_action_div'][
'label']?></
h1>
298echo
'<ul style="list-style-type:square;">';
303 if (
$div ==
'popup')
314$related->id=
'related'.$div;
315 if (
$access==
'W') echo $related->input();
323require_once NOALYSS_TEMPLATE.
'/ledger_detail_file.php';
329require_once NOALYSS_TEMPLATE.
"/ledger_detail_sup_files.php";
333<div
id=
"analytic_div<?php echo $div;?>" style=
"overflow:auto;display:<?php echo $a_tab['analytic_div']['display']?>">
335 if (
$div ==
'popup') :
337 <
h1 class=
"legend"><?php echo
$a_tab[
'analytic_div'][
'label']?></
h1>
339 <?php
if (
$owner->MY_ANALYTIC !=
"nu") :
340 if ( strpos(
$str_anc,
'<td>') ==
true ):
343 <
table class=
"result">
347 <
span class=
"notice">
348 <?php echo
_(
'Aucune donnée'); ?>
352 <
span class=
"notice">
353 <?php echo
_(
'Non utilisée'); ?>
358 echo
'<p style="text-align:center">';
360if (
$div !=
'popup' ) {
362 $a->label=
_(
"Fermer");
363 $a->javascript=
"removeDiv('".$div.
"')";
379 if (
$owner->MY_ANALYTIC !=
'nu' ){
381 $select_box->add_javascript(
_(
"Vérification CA"), sprintf(
"verify_ca('%s')",
$div));
387 $javascript=
"return confirm_box(null,content[50],function () {removeOperation('".$obj->det->jr_id.
"',".dossier::id().
",'".
$div.
"')})";
388 $select_box->add_javascript(
_(
"Supprimer"), $javascript);
393 $select_box->add_javascript(
_(
"Extourne"), sprintf(
"g('ext%s').style.display='block'",
$div));
398 $select_box->add_javascript(
_(
"Dupliquer"),sprintf(
"duplicate_operation('%s','%s')",Dossier::id(),
$obj->jr_id));
404 http_build_query(array(
"act"=>
"PDF:operation_detail",
"gDossier"=>Dossier::id(),
"operation_id"=>
$obj->jr_id)));
411 echo
'<div id="ext'.$div.
'" class="inner_box" style="position:absolute;top:40px;display:none">';
413 $extourne_label=
new IText(
"ext_label");
414 $extourne_label->size=40;
415 $r=
"<form id=\"form_".$div.
"\" onsubmit=\"return false;\">";
420 $r.=
_(
"Extourner une opération vous permet de l'annuler par son écriture inverse");
424 $r.=
_(
"entrez une date").
" :".
$date->input();
428 $r.=
_(
"Libellé").
" :".$extourne_label->input();
432 $r.=
'<p style="text-align:center">';
434 'onclick="confirm_box($(\'form_'.
$div.
'\'),
content[50],
function () {$(\
'form_'.
$div.
'\').divname=\
''.$div.
'\';reverseOperation($(\
'form_'.
$div.
'\'))});
return false"');
435 $r.=HtmlInput::button_hide( "ext
".$div);
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
noalyss_bcadd($p_first, $p_second, $p_decimal=4)
th($p_string, $p_extra='', $raw='')
span($p_string, $p_extra='')
p($p_string, $p_extra='')
h1($p_string, $p_class="")
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.
if(isset($tot['tva'][$a]))($tot['tva'][$a])?></td ><?php else endforeach
global $g_user
if no group available , then stop
if(headers_sent() &&DEBUGNOALYSS > 0) else
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
h( $row[ 'oa_description'])
catch(Exception $e) $exercice
_("actif, passif,charge,...")
else $card content[$j]['j_montant']
$class
Display the Plugin and for each profile were it is installed or not.
this class manage data from the JRNX and JRN table
this file match the tables jrn & jrnx the purpose is to remove or save accountant writing to these ta...
static select_operation_type($p_status)
Return a select object to choose the type of operation.
new class for managing the reconciliation it must be used instead of the function InsertRapt,...
define Class fiche and fiche def, those class are using class attribut. When adding or modifing new c...
static get_all_operation($p_jr_id)
Html Input : Input a date format dd.mm.yyyy The property title should be set to indicate what it is e...
static infobulle($p_comment)
Display a info in a bubble, text is in message_javascript.
static trash($p_id, $p_javascript)
Display the icon of a trashbin.
static echo_file($msg, $print=true)
display the file
Class to manage the company parameter (address, name...)