4?><TABLE
style=
"width: auto" class=
"nowrap">
6<TD><?php echo
_(
'Type de journal')?> </TD>
14 <TD><?php echo
_(
'Nom journal')?> </TD>
15 <TD> <INPUT TYPE=
"text" class=
"input_text" NAME=
"p_jrn_name" VALUE=
"<?php echo $name; ?>"></TD>
25<
td style=
"white-space: nowrap"><?php echo
_(
'Postes utilisables journal (débit/crédit) ')?>
31<?php echo
_(
"Uniquement pour les journaux d'Opérations Diverses, les valeurs sont séparées par des espaces, on peut aussi
32 utiliser le * pour indiquer 'tous les postes qui en dépendent' exemple: 4*")?>
45 <
td style=
"white-space: nowrap">
46 <?php echo
_(
'Numérotation de chaque opération')?>
49 <?php echo $num_op->input();?>
53 <TD
style=
"white-space: nowrap">
54 <?php echo
_(
'Compte en banque')?>
61 $card->setAfter_clean(
"");
62 $card->extra=
$cn->make_list(
'select fd_id from fiche_def where frd_id=4');
63 $card->set_dblclick(
"fill_ipopcard(this);");
64 $card->set_function(
'fill_data');
65 $card->set_attribute(
'ipopup',
'ipop_card');
66 $list=
$cn->make_list(
'select fd_id from fiche_def where frd_id=4');
76 <
td class=
"notice" style=
"white-space: nowrap">
77 <?php echo
_(
"Obligatoire pour les journaux FIN : donner ici la fiche du compte en banque utilisée")?>
93 <
td style=
"white-space: nowrap">
96 echo
_(
"Uniquement note de débit ou crédit");
102 $negative->javascript=
"toggle_row_warning_enable('negative_amount','row_warning')";
103 echo $negative->input();
109 <
tr id=
"row_warning">
110 <
td style=
"white-space: nowrap">
111 <?php echo
_(
"Avertissement montant positif"); ?>
114 <?php echo $negative_warning->input();?>
119 <?php echo
_(
'Utilisation des quantités')?>
124 echo $quantity->input();
135 <
td style=
"white-space: nowrap"><?php echo
_(
"Minimum de lignes à afficher")?></
td>
136<
td><?php echo $min_row->input()?></
td>
139<
td><INPUT TYPE=
"hidden" id=
"p_jrn_deb_max_line" NAME=
"p_jrn_deb_max_line" VALUE=
"10"></
td>
141<
tr><
td><INPUT TYPE=
"hidden" id=
"p_ech_lib" NAME=
"p_ech_lib" VALUE=
"echeance"></
td>
145 <?php echo
_(
'Description') ?>
148 <?php echo $str_description; ?>
153<TD><?php echo
_(
'Préfixe code interne')?> </TD><TD>
154<?php echo
$code?> </TD>
157<TD><?php echo
_(
'Préfixe pièce justificative')?>
161<?php echo $pj_pref; ?>
166 <?=
_(
"Nombre de chiffres du numéro de pièce, remplissage avec des 0 ")?>
169 <?=$padding->input()?>
174<?php
if (
$new == 0 ) : ?>
177 <?php echo
_(
'Dernière pièce numérotée')?>
182 <?php echo str_pad($last_seq,$this->jrn_def_pj_padding??0,
'0',STR_PAD_LEFT)?>
187 <TD><?php echo
_(
'N° pièce justificative')?>
197 <?=
_(
"Journal actif")?>
211 <?php echo
_(
"Devise")?>
227 <
h2 class=
"h-section" > Fiches </
h2>
228 <TABLE
class=
"result" style=
"width:80%;margin-left:10%;">
231 <?php echo
_(
"Services, fournitures ou biens achetés (D)");?>
234 <?php echo
_(
"Fournisseurs (C)"); ?>
241 $Res=
$cn->exec_sql(
"select fd_id,fd_label from fiche_def order by fd_label");
246 $rdeb=$default_deb_purchase;
247 $rcred=$default_cred_purchase;
252 $CHECKED=
" unchecked";
253 foreach ( $rdeb as $element) {
254 if ( $element ==
$res[
'fd_id'] ) {
260 printf (
'<TD> <INPUT TYPE="CHECKBOX" VALUE="%s" NAME="ACH_FICHEDEB[]" class="ach_fichedeb" %s>%s</TD>',
261 $res[
'fd_id'],$CHECKED,
$res[
'fd_label']);
262 $CHECKED=
" unchecked";
263 foreach ( $rcred as $element) {
264 if ( $element ==
$res[
'fd_id'] ) {
269 printf (
'<TD> <INPUT TYPE="CHECKBOX" VALUE="%s" NAME="ACH_FICHECRED[]" class="ach_fichecred" %s>%s</TD>',
270 $res[
'fd_id'],$CHECKED,
$res[
'fd_label']);
284 <
h2 class=
"h-section"> Fiches </
h2>
285 <TABLE
class=
"result" style=
"width:80%;margin-left:10%;">
289 <?php echo
_(
"Clients (D)");?>
292 <?php echo
_(
"Services, fournitures ou biens vendus (C)");?>
299 $Res=
$cn->exec_sql(
"select fd_id,fd_label from fiche_def order by fd_label");
304 $rdeb=$default_deb_sale;
305 $rcred=$default_cred_sale;
310 $CHECKED=
" unchecked";
311 foreach ( $rdeb as $element) {
312 if ( $element ==
$res[
'fd_id'] ) {
318 printf (
'<TD> <INPUT TYPE="CHECKBOX" VALUE="%s" NAME="VEN_FICHEDEB[]" class="ven_fichedeb" %s>%s</TD>',
319 $res[
'fd_id'],$CHECKED,
$res[
'fd_label']);
320 $CHECKED=
" unchecked";
321 foreach ( $rcred as $element) {
322 if ( $element ==
$res[
'fd_id'] ) {
327 printf (
'<TD> <INPUT TYPE="CHECKBOX" VALUE="%s" NAME="VEN_FICHECRED[]" class="ven_fichecred" %s>%s</TD>',
328 $res[
'fd_id'],$CHECKED,
$res[
'fd_label']);
342 <
h2 class=
"h-section"> Fiches </
h2>
343 <TABLE
class=
"result" style=
"width:60%;margin-left:20%;">
346 <?php echo
_(
"Fiches utilisables (D/C)"); ?>
354 $Res=
$cn->exec_sql(
"select fd_id,fd_label from fiche_def order by fd_label");
363 $CHECKED=
" unchecked";
364 if (!empty($rdeb))
foreach ( $rdeb as $element) {
365 if ( $element ==
$res[
'fd_id'] ) {
371 printf (
'<TD> <INPUT TYPE="CHECKBOX" VALUE="%s" NAME="ODS_FICHEDEB[]" class="ods_fichedeb" %s>%s</TD>',
372 $res[
'fd_id'],$CHECKED,
$res[
'fd_label']);
373 $CHECKED=
" unchecked";
388 <
h2 class=
"h-section"> Fiches </
h2>
389 <TABLE
class=
"result" style=
"width:60%;margin-left:20%;">
400 $Res=
$cn->exec_sql(
"select fd_id,fd_label from fiche_def order by fd_label");
409 $CHECKED=
" unchecked";
410 foreach ( $rdeb as $element) {
411 if ( $element ==
$res[
'fd_id'] ) {
417 printf (
'<TD> <INPUT TYPE="CHECKBOX" VALUE="%s" NAME="FIN_FICHEDEB[]" class="fin_fichedeb" %s>%s</TD>',
418 $res[
'fd_id'],$CHECKED,
$res[
'fd_label']);
419 $CHECKED=
" unchecked";
429<?php
if (
$new == 1 ) : ?>
431 var a_div=Array(
'VEN_div',
'ODS_div',
'ACH_div',
'FIN_div');
434 for (var i=0;i<a_div.length;i++)
436 $(a_div[i]).style.display=
'none';
441 $(
'type_ods').style.display=
'none';
442 $(
'type_fin').style.display=
'none';
443 $(
'type_fin2').style.display=
'none';
444 $(
'type_fin3').style.display=
'none';
445 $(
'neg_amount').style.display=
'none';
446 $(
'row_warning').style.display=
'none';
451 var ch=$(
'p_jrn_type_select_id').options[$(
'p_jrn_type_select_id').selectedIndex].value;
452 if ( ch != -1 ) { $(ch+
'_div').style.display=
'block';}
456 $(
'type_fin').style.display=
'table-row';
457 $(
'type_fin2').style.display=
'table-row';
458 $(
'type_fin3').style.display=
'table-row';
462 $(
'type_ods').style.display=
'table-row';
466 $(
'neg_amount').style.display=
'table-row';
467 toggle_row_warning_enable(
'negative_amount',
'row_warning');
472 $(
'neg_amount').style.display=
'table-row';
473 toggle_row_warning_enable(
'negative_amount',
'row_warning');
484 if (isset ($previous_p_jrn_type) ):
496toggle_row_warning_enable(
'negative_amount',
'row_warning');
503(
function () {var a_checkbox=[
'ach_fichecred',
'ach_fichedeb',
'ven_fichecred',
'ven_fichedeb',
'ods_fichedeb',
'fin_fichedeb'];
504 a_checkbox.forEach(element => activate_checkbox_range(element));})()
h2($p_string, $p_class="", $raw="")
th($p_string, $p_extra='', $raw='')
tr($p_string, $p_extra='')
td($p_string='', $p_extra='')
surround the string with td
if(trim($query)==''|| $filter=='') $search
_("actif, passif,charge,...")
Input HTML for the card show buttons, in the file, you have to add card.js How to use :
static warnbulle($p_comment)
Display a warning in a bubble, text is in message_javascript.
static infobulle($p_comment)
Display a info in a bubble, text is in message_javascript.