From d9f8773817cc53d7844820fb65bde73a4200ea0c Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 9 Jul 2010 19:30:18 +0000 Subject: [PATCH] FS#122, by default in the detail of operation for sale and purchase, the details of accountancy are hidden, and get visible thanks a button --- include/template/ledger_detail_ach.php | 19 +++++++++++++++++-- include/template/ledger_detail_ven.php | 18 +++++++++++++++++- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/include/template/ledger_detail_ach.php b/include/template/ledger_detail_ach.php index ded07a438..7be26714e 100644 --- a/include/template/ledger_detail_ach.php +++ b/include/template/ledger_detail_ach.php @@ -132,11 +132,25 @@ echo tr($row);
+ + jr_id); + /* if it is not in a popup, the details are hidden */ + if ( $div != 'popup') { + $ib=new IButton ("a".$div); + $ib->label='Afficher'; + $ib->javascript="g('detail_".$div."').style.display='block';g('a".$div."').style.display='none';"; + echo $ib->input(); + echo '
+ diff --git a/include/template/ledger_detail_ven.php b/include/template/ledger_detail_ven.php index 7866b6733..071f5b8a6 100644 --- a/include/template/ledger_detail_ven.php +++ b/include/template/ledger_detail_ven.php @@ -133,11 +133,26 @@ echo tr($row);
+ label='Afficher'; + $ib->javascript="g('detail_".$div."').style.display='block';g('a".$div."').style.display='none';"; + echo $ib->input(); + echo '
+