build_search_sql($_GET);
@@ -618,12 +618,12 @@ class Acc_Ledger extends jrn_def_sql
// show nav bar
echo $bar;
- \endcode
- * \see build_search_sql
- * \see display_search_form
- * \see search_form
+ @endcode
+ * @see build_search_sql
+ * @see display_search_form
+ * @see search_form
- * \return HTML string
+ * @return HTML string
*/
public function list_operation_to_reconcile($sql)
diff --git a/include/class_acc_ledger_sold.php b/include/class_acc_ledger_sold.php
index 7242caf41..5d01d2b5d 100644
--- a/include/class_acc_ledger_sold.php
+++ b/include/class_acc_ledger_sold.php
@@ -871,7 +871,7 @@ class Acc_Ledger_Sold extends Acc_Ledger {
$fname = new Fiche($this->db);
$fname->get_by_qcode(${'e_mp_qcode_' . $e_mp});
$r.='' . "Payé par " . ${'e_mp_qcode_' . $e_mp} .
- " " . $fname->getName() . '
' . '' . _('Déduction acompte ') . h($acompte) . '
' .
+ " " . $fname->getName() . ' ' . '' . _('Déduction acompte ') . h($acompte) . '
' .
_('Libellé :') . h($e_comm_paiement) ;
$r.='
';
}
diff --git a/include/template/ledger_detail_ach.php b/include/template/ledger_detail_ach.php
index 96f8471ad..5752e8867 100644
--- a/include/template/ledger_detail_ach.php
+++ b/include/template/ledger_detail_ach.php
@@ -85,18 +85,18 @@
-
-
-
- |
+ |
+
+
+
+ |
Note
|
- |
+ |
width = 25;
- $inote->heigh = 5;
+ $inote->style=' class="itextarea" style="width:90%;height:100%;"';
$inote->value = strip_tags($obj->det->note);
echo $inote->input();
?>
@@ -245,83 +245,8 @@
-
-
- label = 'Afficher';
- $ib->javascript = "g('detail_" . $div . "').style.display='block';g('a" . $div . "').style.display='none';";
- echo $ib->input();
- echo ' ';
- $ib = new IButton("h" . $div);
- $ib->label = 'Cacher';
- $ib->javascript = "g('detail_" . $div . "').style.display='none';g('a" . $div . "').style.display='block';";
- echo $ib->input();
- } else
- echo ' ';
- $detail = new Acc_Misc($cn, $obj->jr_id);
- $detail->get();
- ?>
-
-
- ';
- for ($e = 0; $e < count($detail->det->array); $e++)
- {
- $row = '';
- $q = $detail->det->array;
- $view_history = sprintf('%s', $q[$e]['j_poste'], $gDossier, $q[$e]['j_poste']);
-
- $row.=td($view_history);
- if ($q[$e]['j_qcode'] != '')
- {
- $fiche = new Fiche($cn);
- $fiche->get_by_qcode($q[$e]['j_qcode']);
- $view_history = sprintf('%s', $fiche->id, $gDossier, $q[$e]['j_qcode']);
- } else
- $view_history = '';
- $row.=td($view_history);
-
- if ($q[$e]['j_text']=="")
- {
- if ($q[$e]['j_qcode'] != '')
- {
- // nom de la fiche
- $ff = new Fiche($cn);
- $ff->get_by_qcode($q[$e]['j_qcode']);
- $row.=td($ff->strAttribut(h(ATTR_DEF_NAME)));
- } else
- {
- // libellé du compte
- $name = $cn->get_value('select pcm_lib from tmp_pcmn where pcm_val=$1', array($q[$e]['j_poste']));
- $row.=td(h($name));
- }
- }
- else
- $row.=td(h($q[$e]['j_text']));
-
- $montant = td(nbm($q[$e]['j_montant']), 'class="num"');
- $row.=($q[$e]['j_debit'] == 't') ? $montant : td('');
- $row.=($q[$e]['j_debit'] == 'f') ? $montant : td('');
- $class=($e%2==0)?' class="even"':'class="odd"';
-
- echo tr($row,$class);
- }
- ?>
-
-
-
-
diff --git a/include/template/ledger_detail_bottom.php b/include/template/ledger_detail_bottom.php
index 9d259d2f3..c551d094f 100644
--- a/include/template/ledger_detail_bottom.php
+++ b/include/template/ledger_detail_bottom.php
@@ -1,9 +1,122 @@
+'writing_div'.$div,'label'=>_('Ecriture Comptable'),'display'=>'none');
+$a_tab['info_operation_div']=array('id'=>'info_operation_div'.$div,'label'=>_('Information'),'display'=>'none');
+$a_tab['linked_operation_div']=array('id'=>'linked_operation_div'.$div,'label'=>_('Opérations liées'),'display'=>'none');
+$a_tab['document_operation_div']=array('id'=>'document_operation_div'.$div,'label'=>_('Document'),'display'=>'block');
+$a_tab['linked_action_div']=array('id'=>'linked_action_div'.$div,'label'=>_('Actions liées'),'display'=>'none');
+
+// show tabs
+if ( $div != "popup") :
+ $a_tab['document_operation_div']['display']='block';
+?>
+
+ $a_value): ?>
+
+ -
+
+
+
+
+
+$a_value):
+ $a_tab[$idx]['display']='block';
+ endforeach;
+endif;
+?>
+
+
info->command);
$other=new IText('OTHER',$obj->info->other);
?>
-
-
+
+
+
+
+
+
+ jr_id);
+ $detail->get();
+ ?>
+
+
+ ';
+ for ($e = 0; $e < count($detail->det->array); $e++)
+ {
+ $row = '';
+ $q = $detail->det->array;
+ $view_history = sprintf('%s', $q[$e]['j_poste'], $gDossier, $q[$e]['j_poste']);
+
+ $row.=td($view_history);
+ if ($q[$e]['j_qcode'] != '')
+ {
+ $fiche = new Fiche($cn);
+ $fiche->get_by_qcode($q[$e]['j_qcode']);
+ $view_history = sprintf('%s', $fiche->id, $gDossier, $q[$e]['j_qcode']);
+ } else
+ $view_history = '';
+ $row.=td($view_history);
+
+ if ($q[$e]['j_text']=="")
+ {
+ if ($q[$e]['j_qcode'] != '')
+ {
+ // nom de la fiche
+ $ff = new Fiche($cn);
+ $ff->get_by_qcode($q[$e]['j_qcode']);
+ $row.=td($ff->strAttribut(h(ATTR_DEF_NAME)));
+ } else
+ {
+ // libellé du compte
+ $name = $cn->get_value('select pcm_lib from tmp_pcmn where pcm_val=$1', array($q[$e]['j_poste']));
+ $row.=td(h($name));
+ }
+ }
+ else
+ $row.=td(h($q[$e]['j_text']));
+
+ $montant = td(nbm($q[$e]['j_montant']), 'class="num"');
+ $row.=($q[$e]['j_debit'] == 't') ? $montant : td('');
+ $row.=($q[$e]['j_debit'] == 'f') ? $montant : td('');
+ $class=($e%2==0)?' class="even"':'class="odd"';
+
+ echo tr($row,$class);
+ }
+ ?>
+
+
+
+
+
+
+
| : | input(); ?> |
@@ -13,10 +126,13 @@
-
-
-
-
+
+
+
+
jr_id=$jr_id;
@@ -62,32 +178,38 @@ if ( $access=='W') {
0)
-{
?>
-
- Actions liées
+
+
+
+
';
for ($i = 0; $i < count($array); $i++)
{
+ $remove='';
+ if ( $access=='W') $remove=HtmlInput::button_action_remove_operation($array[$i]['ago_id']);
if ( $div == 'popup')
{
- echo ''.HtmlInput::detail_action($array[$i]['ag_id'], h($array[$i]['ag_ref']." ".$array[$i]['ag_title']),0).'';
+ echo ''.HtmlInput::detail_action($array[$i]['ag_id'], h($array[$i]['ag_ref']." ".$array[$i]['ag_title']),0).$remove.'';
}
else
{
- echo ''.HtmlInput::detail_action($array[$i]['ag_id'], h($array[$i]['ag_ref']." ".$array[$i]['ag_title']),1).'';
+ echo ''.HtmlInput::detail_action($array[$i]['ag_id'], h($array[$i]['ag_ref']." ".$array[$i]['ag_title']),1).$remove.'';
}
}
echo '';
-
+ $related=new IRelated_Action('related');
+ $related->id='related'.$div;
+ if ( $access=='W') echo $related->input();
echo '';
-}
?>
-
+
\ No newline at end of file
diff --git a/include/template/ledger_detail_fin.php b/include/template/ledger_detail_fin.php
index 4ac66c11a..f541b7729 100644
--- a/include/template/ledger_detail_fin.php
+++ b/include/template/ledger_detail_fin.php
@@ -67,26 +67,27 @@ echo td(_('Pièce')).td($itext->input());
|
- |
-
-
-|
- Note
- |
-
-|
-width=25;
-$inote->heigh=5;
-$inote->value=strip_tags($obj->det->note);
-echo $inote->input();
-?>
+ |
+
+
+
+ |
+ Note
+ |
+
+ |
+ style=' class="itextarea" style="width:90%;height:100%;"';
+ $inote->value = strip_tags($obj->det->note);
+ echo $inote->input();
+ ?>
+
+ |
+
+
+ |
-
-
-
- |
diff --git a/include/template/ledger_detail_misc.php b/include/template/ledger_detail_misc.php
index b97b4a831..517f22753 100644
--- a/include/template/ledger_detail_misc.php
+++ b/include/template/ledger_detail_misc.php
@@ -53,27 +53,26 @@ require_once ('class_anc_plan.php');
|
-
-
-
- |
- Note
- |
-
-
- |
- width=25;
- $inote->heigh=5;
- $inote->value=strip_tags($obj->det->note);
- echo $inote->input();
- ?>
+ |
+
+
+ |
+ Note
+ |
+
+ |
+ style=' class="itextarea" style="width:90%;height:100%;"';
+ $inote->value = strip_tags($obj->det->note);
+ echo $inote->input();
+ ?>
+
+ |
+
+
+ |
-
-
-
- |
diff --git a/include/template/ledger_detail_ven.php b/include/template/ledger_detail_ven.php
index c4ec3370f..0d10c6d16 100644
--- a/include/template/ledger_detail_ven.php
+++ b/include/template/ledger_detail_ven.php
@@ -94,26 +94,26 @@ echo $ipaid->input();
-
-
-
- |
-
+ |
+
+
+ |
+ Note
|
- |
-width = 25;
-$inote->heigh = 5;
-$inote->value = strip_tags($obj->det->note);
-echo $inote->input();
-?>
+ |
+ style=' class="itextarea" style="width:90%;height:100%;"';
+ $inote->value = strip_tags($obj->det->note);
+ echo $inote->input();
+ ?>
|
|
+
@@ -248,78 +248,7 @@ echo $inote->input();
-
-
-
-
- label = 'Afficher';
- $ib->javascript = "g('detail_" . $div . "').style.display='block';g('a" . $div . "').style.display='none';";
- echo $ib->input();
- echo ' ';
- $ib = new IButton("h" . $div);
- $ib->label = 'Cacher';
- $ib->javascript = "g('detail_" . $div . "').style.display='none';g('a" . $div . "').style.display='block';";
- echo $ib->input();
- } else
- echo ' ';
-
- $detail = new Acc_Misc($cn, $obj->jr_id);
- $detail->get();
- ?>
-
-
-
- ';
- for ($e = 0; $e < count($detail->det->array); $e++)
- {
- $row = '';
- $q = $detail->det->array[$e];
- $view_history = sprintf('%s', $q['j_poste'], $gDossier, $q['j_poste']);
-
- $row.=td($view_history);
- if ($q['j_qcode'] != '')
- {
- $fiche = new Fiche($cn);
- $fiche->get_by_qcode($q['j_qcode']);
- $view_history = sprintf('%s', $fiche->id, $gDossier, $q['j_qcode']);
- } else
- $view_history = '';
- $row.=td($view_history);
-
- if ($q['j_qcode'] != '')
- {
- // nom de la fiche
- $ff = new Fiche($cn);
- $ff->get_by_qcode($q['j_qcode']);
- $row.=td($ff->strAttribut(h(ATTR_DEF_NAME)));
- } else
- {
- // libellé du compte
- $name = $cn->get_value('select pcm_lib from tmp_pcmn where pcm_val=$1', array($q['j_poste']));
- $row.=td(h($name));
- }
- $montant = td(nbm($q['j_montant']), 'class="num"');
- $row.=($q['j_debit'] == 't') ? $montant : td('');
- $row.=($q['j_debit'] == 'f') ? $montant : td('');
- $class=($e%2==0)?' class="even"':'class="odd"';
- echo tr($row,$class);
- }
- ?>
-
-
-
+
-
|