Author: danydb
Date: 2012-02-04 15:10:49 +0100 (Sat, 04 Feb 2012)
New Revision: 4741
Modified:
phpcompta/tags/rel600/html/js/acc_ledger.js
phpcompta/tags/rel600/include/class_acc_ledger.php
phpcompta/tags/rel600/include/class_iposte.php
Log:
#285 : Historique Poste comptable
Modified: phpcompta/tags/rel600/html/js/acc_ledger.js
===================================================================
--- phpcompta/tags/rel600/html/js/acc_ledger.js 2012-02-04 13:45:39 UTC (rev
4740)
+++ phpcompta/tags/rel600/html/js/acc_ledger.js 2012-02-04 14:10:49 UTC (rev
4741)
@@ -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/tags/rel600/include/class_acc_ledger.php
===================================================================
--- phpcompta/tags/rel600/include/class_acc_ledger.php 2012-02-04 13:45:39 UTC
(rev 4740)
+++ phpcompta/tags/rel600/include/class_acc_ledger.php 2012-02-04 14:10:49 UTC
(rev 4741)
@@ -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/tags/rel600/include/class_iposte.php
===================================================================
--- phpcompta/tags/rel600/include/class_iposte.php 2012-02-04 13:45:39 UTC
(rev 4740)
+++ phpcompta/tags/rel600/include/class_iposte.php 2012-02-04 14:10:49 UTC
(rev 4741)
@@ -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