22if (!defined(
'ALLOWED'))
23 die(
'Appel direct ne sont pas permis');
34 "repo"=>
"repo_div_id" ,
35 "invoice"=>
"facturation_div_id",
36 "reverse"=>
"reverse_div_id",
37 "type_operation"=>
'operationtype_div_id',
38 "document"=>
"document_div_id",
39 "action_gestion"=>
"actiongestion_div_id"];
45 $a_show=[
'template',
'repo',
'invoice',
'reverse',
'action_gestion'];
46 $show=
"facturation_div_id";
48 $a_show=[
'template',
'document',
'reverse',
'type_operation',
'action_gestion'];
49 $show=
"document_div_id";
62 <?php
if (in_array(
'invoice',
$a_show)) :?>
63 <li
class=
"tabs_selected" style=
"float: none"><a href=
"javascript:void(0)" title=
"<?php echo _("Générer une facture ou charger un document
")?>" onclick=
"unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';show_tabs(a_tab,'facturation_div_id')"><?php echo _(
'Facture')?></a></li>
66 <?php
if (in_array(
'document',
$a_show)) :?>
67 <li
class=
"tabs" style=
"float: none"> <a href=
"javascript:void(0)" title=
"<?php echo _("Document")?>" onclick=
"unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';show_tabs(a_tab,'document_div_id')"> <?php echo _(
'Document')?> </a></li>
70 <?php
if (in_array(
'repo',
$a_show)) :?>
71 <li
class=
"tabs" style=
"float: none"> <a href=
"javascript:void(0)" title=
"<?php echo _("Choix du dépôt
")?>" onclick=
"unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';show_tabs(a_tab,'repo_div_id')"> <?php echo _(
'Dépôt')?> </a></li>
74 <?php
if (in_array(
'template',
$a_show)) :?>
75 <li
class=
"tabs" style=
"float: none"> <a href=
"javascript:void(0)" title=
"<?php echo _("Modèle à sauver
")?>" onclick=
"unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';show_tabs(a_tab,'modele_div_id')"> <?php echo _(
'Modèle')?> </a></li>
78 <?php
if (in_array(
'reverse',
$a_show)) :?>
79 <li
class=
"tabs" style=
"float: none"> <a href=
"javascript:void(0)" title=
"<?php echo _("Extourne
")?>" onclick=
"unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';show_tabs(a_tab,'reverse_div_id')"> <?php echo _(
'Extourne')?> </a></li>
82 <?php
if (in_array(
'type_operation',
$a_show)) :?>
83 <li
class=
"tabs" style=
"float: none"> <a href=
"javascript:void(0)" title=
"<?php echo _("Type opération
")?>" onclick=
"unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';show_tabs(a_tab,'operationtype_div_id')"> <?php echo _(
'Type opération')?> </a></li>
86 <?php
if (in_array(
'action_gestion',
$a_show)) :?>
87 <li
class=
"tabs" style=
"float: none"> <a href=
"javascript:void(0)" title=
"<?php echo _("Action gestion
")?>" onclick=
"unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';show_tabs(a_tab,'actiongestion_div_id')"> <?php echo _(
'Action gestion')?> </a></li>
93 echo $this->select_depot(
false, -1);
95if (in_array(
'invoice',
$a_show)) {
96 echo $this->extra_info();
99 if ( in_array(
"invoice",
$a_show)) {
100 throw new Exception(
"ACC_LEDGER_INPUT100 : document and invoice available in same time");
103<div
id=
"document_div_id" style=
"display:none;height:185px;height:10rem">
106 $file->setAlertOnSize(
true);
108 echo
'<p class="decale">';
109 echo _(
"Ajoutez une pièce justificative ");
110 echo
$file->input(
"pj",
"");
118<div
id=
"modele_div_id" style=
"display:none;height:185px;height:10rem">
123<div
id=
"reverse_div_id" style=
"display:none;height:185px;height:10rem">
127 echo _(
'Extourne opération').
" ".
$reverse_ck->input().
" ";
136<div
id=
"operationtype_div_id" style=
"display:none;height:185px;height:10rem">
143<div
id=
"actiongestion_div_id" style=
"display:none;height:185px;height:10rem">
155 show_tabs(a_tab,
'<?=$show?>');
for($j=0;$j< $nb_row;$j++)($j%2==0)? 'even' $show
static select_operation_type($p_status)
Return a select object to choose the type of operation.
Class Document corresponds to the table document.
Html Input : Input a date format dd.mm.yyyy The property title should be set to indicate what it is e...
Html Input for uploading file, must be in a form with enctype="multipart/form-data".
static echo_file($msg, $print=true)
display the file
static save_propose()
Propose to save the operation into a predefined operation.
if( $delta< 0) elseif( $delta==0)