Author: danydb
Date: 2012-02-04 21:24:49 +0100 (Sat, 04 Feb 2012)
New Revision: 4752
Modified:
phpcompta/trunk/
phpcompta/trunk/html/js/acc_ledger.js
phpcompta/trunk/include/class_acc_ledger.php
phpcompta/trunk/include/class_iposte.php
Log:
Merged revisions 4741 via svnmerge from
file:///home/developper/svn/phpcompta/tags/rel600
........
r4741 | danydb | 2012-02-04 15:10:49 +0100 (Sat, 04 Feb 2012) | 4 lines
#285 : Historique Poste comptable
........
Property changes on: phpcompta/trunk
___________________________________________________________________
Name: svnmerge-integrated
- /phpcompta/tags/rel600:1-4736,4738-4740
+ /phpcompta/tags/rel600:1-4736,4738-4741
Modified: phpcompta/trunk/html/js/acc_ledger.js
===================================================================
--- phpcompta/trunk/html/js/acc_ledger.js 2012-02-04 20:24:27 UTC (rev
4751)
+++ phpcompta/trunk/html/js/acc_ledger.js 2012-02-04 20:24:49 UTC (rev
4752)
@@ -296,7 +296,7 @@
nb.value++;
new_tt.evalScripts();
- } catch(e) { alert(e.message);}
+ } catch(e) {alert(e.message);}
}
/**
@@ -896,3 +896,9 @@
}
return false;
}
+function get_history_account(ctl,dossier) {
+ if ( $(ctl).value != '')
+ {
+ view_history_account($(ctl).value, dossier);
+ }
+}
\ No newline at end of file
Modified: phpcompta/trunk/include/class_acc_ledger.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger.php 2012-02-04 20:24:27 UTC
(rev 4751)
+++ phpcompta/trunk/include/class_acc_ledger.php 2012-02-04 20:24:49 UTC
(rev 4752)
@@ -1650,9 +1650,12 @@
$poste->set_attribute('ipopup','ipop_account');
$poste->set_attribute('label','ld'.$i);
$poste->set_attribute('account','poste'.$i);
+ $poste->set_attribute('dossier', Dossier::id());
$poste->value=(isset(${'poste'.$i}))?${"poste".$i}:''
- ;
+ ;
+ $poste->dbl_click_history();
+
$poste->readonly=$p_readonly;
if ( $poste->value != '' )
Modified: phpcompta/trunk/include/class_iposte.php
===================================================================
--- phpcompta/trunk/include/class_iposte.php 2012-02-04 20:24:27 UTC (rev
4751)
+++ phpcompta/trunk/include/class_iposte.php 2012-02-04 20:24:49 UTC (rev
4752)
@@ -156,6 +156,7 @@
else
$itext->size=$this->size;
+ $itext->javascript=$this->javascript;
/* create the button */
$ibutton=$this->dsp_button();
if ( $this->table==3)
@@ -188,6 +189,15 @@
return $r;
}
+ /**
+ *add a double click to poste to see his history
+ *@note change $this->javascript
+ */
+ public function dbl_click_history()
+ {
+ $r='
ondblclick="get_history_account(\''.$this->name.'\',\''.dossier::id().'\')"';
+ $this->javascript=$r;
+ }
static public function test_me()
{
}
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
_______________________________________________
Phpcompta est un logiciel libre de comptabilité en ligne
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev