40$a_tab[
'writing_div']=array(
'id'=>
'writing_div'.
$div,
'label'=>_(
'Ecriture Comptable'),
'display'=>
'none');
41$a_tab[
'info_operation_div']=array(
'id'=>
'info_operation_div'.
$div,
'label'=>_(
'Information'),
'display'=>
'none');
42$a_tab[
'linked_operation_div']=array(
'id'=>
'linked_operation_div'.
$div,
'label'=>_(
'Opérations liées').
'('.
$nb_aRap.
')',
'display'=>
'none');
43$a_tab[
'document_operation_div']=array(
'id'=>
'document_operation_div'.
$div,
'label'=>_(
'Document').
'('.
$nb_document.
')',
'display'=>
'block');
44$a_tab[
'linked_action_div']=array(
'id'=>
'linked_action_div'.
$div,
'label'=>_(
'Actions Gestion').
'('.count(
$a_followup).
')',
'display'=>
'none');
45$a_tab[
'analytic_div']=array(
'id'=>
'analytic_div'.
$div,
'label'=>_(
'Comptabilité Analytique'),
'display'=>
'none');
50if (
$div !=
"popup") :
51 $a_tab[
'document_operation_div'][
'display']=
'block';
58 <li
class=
"<?php echo $class?>">
60 <a href=
"javascript:void(0)" onclick=
"unselect_other_tab(this.parentNode.parentNode);var tab=Array('writing_div<?php echo $div?>','info_operation_div<?php echo $div?>','linked_operation_div<?php echo $div?>','document_operation_div<?php echo $div?>','linked_action_div<?php echo $div?>','analytic_div<?php echo $div?>');this.parentNode.className='tabs_selected' ;show_tabs(tab,'<?php echo $div_tab_id; ?>');"><?php echo _(
$a_value[
'label'])?></a>
64<div
style=
"clear:both"></div>
78 <div
id=
"writing_div<?php echo $div;?>" class=
"myfieldset" style=
"display:<?php echo $a_tab['writing_div']['display']?>">
81 if (
$div ==
'popup') :
83 <
h1 class=
"legend"><?php echo
$a_tab[
'writing_div'][
'label']?></
h1>
90 <
table class=
"result">
93 echo
th(_(
'Poste Comptable'));
94 echo
th(_(
'Quick Code'));
95 echo
th(_(
'Libellé'));
96 echo
th(_(
'Débit'),
' style="text-align:right"');
97 echo
th(_(
'Crédit'),
' style="text-align:right"');
106 if (
$q[
$e][
'j_qcode'] !=
'')
115 if (
$q[
$e][
'j_text']==
"")
117 if (
$q[
$e][
'j_qcode'] !=
'')
121 $ff->get_by_qcode(
$q[
$e][
'j_qcode']);
126 $name =
$cn->get_value(
'select pcm_lib from tmp_pcmn where pcm_val=$1', array(
$q[
$e][
'j_poste']));
133 $montant =
td(
nbm(
$q[
$e][
'j_montant']),
'class="num"');
134 $row.=(
$q[
$e][
'j_debit'] ==
't') ? $montant :
td(
'');
135 $row.=(
$q[
$e][
'j_debit'] ==
'f') ? $montant :
td(
'');
136 $class=(
$e%2==0)?
' class="even"':
'class="odd"';
144<div
id=
"info_operation_div<?php echo $div;?>" class=
"myfieldset" style=
"display:<?php echo $a_tab['info_operation_div']['display']?>">
147 if (
$div ==
'popup') :
149 <
h1 class=
"legend"><?php echo
$a_tab[
'info_operation_div'][
'label']?></
h1>
160 <?=_(
"Type opération")?>
172<div
id=
"linked_operation_div<?php echo $div;?>" style=
"display:<?php echo $a_tab['linked_operation_div']['display']?>" class=
"myfieldset">
175 if (
$div ==
'popup') :
177 <
h1 class=
"legend"><?php echo
$a_tab[
'linked_operation_div'][
'label']?></
h1>
187 echo
'<table id="'.$tableid.
'">';
191 $internal=$opRap->get_internal();
192 $array_jr=
$cn->get_array(
'select jr_date,jr_pj_number,jr_montant,jr_comment , jr_internal ,jr_optype
193 from jrn where jr_id=$1',
195 $amount=$array_jr[0][
'jr_montant'];
196 switch (substr($array_jr[0][
'jr_internal'],0,1)) {
198 $amount =
$cn->get_value(
"select sum(qp_price+qp_vat-qp_vat_sided) from quant_purchase qp
199 where qp_internal=$1",
206 $amount=
$cn->get_value(
"select sum(qs_price+qs_vat-qs_vat_sided) from quant_sold qs
207 where qs_internal=$1",
214 $total_rec=bcadd($total_rec,
$amount??0);
219 $js=
"return confirm_box(null,'"._(
"vous confirmez?").
"',";
220 $js.=sprintf(
'function () { dropLink(\'%s\',\'%s\',\'%s\',\'%s\');deleteRowRec(\'%s\',$(\'row%d\'));})',
233 $comment=strip_tags($array_jr[0][
'jr_comment']??
"");
234 $pj_nb=
h($array_jr[0][
'jr_pj_number']);
236 td(
'<a class="line" href="javascript:void(0)" onclick="'.
$str.
'" >'.$internal.
'</A>').
240 td(_(
'delta').
'='.
nbm(bcsub(abs($amount_tva_include),abs($total_rec)))).
241 td($remove),
' id = "row'.
$e.
'"');
249 $wConcerned->amount_id=
$obj->det->jr_montant;
250 $wConcerned->div=
"search_reconcile";
251 $wConcerned->set_hideOperation(
$obj->jr_id);
252 echo $wConcerned->input();
257<div
id=
"linked_action_div<?php echo $div;?>" style=
"display:<?php echo $a_tab['linked_action_div']['display']?>" class=
"myfieldset">
260 if (
$div ==
'popup') :
262 <
h1 class=
"legend"><?php echo
$a_tab[
'linked_action_div'][
'label']?></
h1>
268echo
'<ul style="list-style-type:square;">';
273 if (
$div ==
'popup')
284$related->id=
'related'.$div;
285 if (
$access==
'W') echo $related->input();
291require_once NOALYSS_TEMPLATE.
'/ledger_detail_file.php';
295<div
id=
"analytic_div<?php echo $div;?>" style=
"overflow:auto;display:<?php echo $a_tab['analytic_div']['display']?>">
297 if (
$div ==
'popup') :
299 <
h1 class=
"legend"><?php echo
$a_tab[
'analytic_div'][
'label']?></
h1>
301 <?php
if (
$owner->MY_ANALYTIC !=
"nu") :
302 if ( strpos(
$str_anc,
'<td>') ==
true ):
305 <
table class=
"result">
309 <
span class=
"notice">
310 <?php echo _(
'Aucune donnée'); ?>
314 <
span class=
"notice">
315 <?php echo _(
'Non utilisée'); ?>
322 echo
'<p style="text-align:center">';
324if (
$div !=
'popup' ) {
326 $a->label=_(
"Fermer");
327 $a->javascript=
"removeDiv('".$div.
"')";
341 echo
HtmlInput::submit(
'save',_(
'Sauver'),
'onClick="return verify_ca(\'popup\');"');
343 if (
$owner->MY_ANALYTIC !=
'nu' ){
345 $select_box->add_javascript(_(
"Vérification CA"), sprintf(
"verify_ca('%s')",
$div));
351 $javascript=
"return confirm_box(null,content[50],function () {removeOperation('".$obj->det->jr_id.
"',".
dossier::id().
",'".
$div.
"')})";
352 $select_box->add_javascript(_(
"Supprimer"), $javascript);
357 $select_box->add_javascript(_(
"Extourne"), sprintf(
"g('ext%s').style.display='block'",
$div));
367 $select_box->add_url(_(
"Export PDF"),
"export.php?".
368 http_build_query(array(
"act"=>
"PDF:operation_detail",
"gDossier"=>
Dossier::id(),
"operation_id"=>
$obj->jr_id)));
375 echo
'<div id="ext'.$div.
'" class="inner_box" style="position:absolute;top:40px;display:none">';
377 $extourne_label=
new IText(
"ext_label");
378 $extourne_label->size=40;
379 $r=
"<form id=\"form_".$div.
"\" onsubmit=\"return false;\">";
384 $r.= _(
"Extourner une opération vous permet de l'annuler par son écriture inverse");
388 $r.=_(
"entrez une date").
" :".
$date->input();
392 $r.=_(
"Libellé").
" :".$extourne_label->input();
396 $r.=
'<p style="text-align:center">';
398 'onclick="confirm_box($(\'form_'.
$div.
'\'),
content[50],
function () {$(\
'form_'.
$div.
'\').divname=\
''.$div.
'\';reverseOperation($(\
'form_'.
$div.
'\'))});
return false"');
399 $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='')
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.
global $g_user
if no group available , then stop
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
h( $row[ 'oa_description'])
else $card content[$j]['j_montant']
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,...
static id()
return the 'gDossier' value after a check
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...)
For the periode tables parm_periode and jrn_periode.