[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4938 - phpcompta/trunk/html/js
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4938 - phpcompta/trunk/html/js |
Date: |
Mon, 18 Jun 2012 21:31:46 +0200 (CEST) |
Author: danydb
Date: 2012-06-18 21:31:45 +0200 (Mon, 18 Jun 2012)
New Revision: 4938
Modified:
phpcompta/trunk/html/js/acc_ledger.js
Log:
0000530: Ajouter la possibilit?\195?\169 d'entrer une date par
op?\195?\169ration dans la saisie du journal de banque
Modified: phpcompta/trunk/html/js/acc_ledger.js
===================================================================
--- phpcompta/trunk/html/js/acc_ledger.js 2012-06-18 19:15:20 UTC (rev
4937)
+++ phpcompta/trunk/html/js/acc_ledger.js 2012-06-18 19:31:45 UTC (rev
4938)
@@ -245,6 +245,9 @@
for ( var e=0;e < nNumberCell;e++)
{
var newCell=row.insertCell(e);
+ if ( e==0) {
+ newCell.id='tdchdate'+nb.value;
+ }
var tt=rowToCopy.cells[e].innerHTML;
var new_tt=tt.replace(/e_other0/g,"e_other"+nb.value);
new_tt=new_tt.replace(/e_other0_comment/g,"e_other"+nb.value+'_comment');
@@ -252,7 +255,7 @@
new_tt=new_tt.replace(/e_other0_amount/g,"e_other"+nb.value+'_amount');
new_tt=new_tt.replace(/e_concerned0/g,"e_concerned"+nb.value);
new_tt=new_tt.replace(/e_other0_label/g,"e_other"+nb.value+'_label');
- new_tt=new_tt.replace(/dateop0/g,"date"+nb.value);
+ new_tt=new_tt.replace(/dateop0/g,"dateop"+nb.value);
newCell.innerHTML=new_tt;
new_tt.evalScripts();
}
@@ -261,7 +264,12 @@
g("e_other"+nb.value+'_amount').value="0";
g("e_other"+nb.value+'_comment').value="";
g("e_concerned"+nb.value).value="";
- nb.value++;
+
+ var ch=$('chdate').options[$('chdate').selectedIndex].value;
+ if (ch == 1 ) {
+ $('tdchdate'+nb.value).hide();
+ }
+ nb.value++;
}
/**
* @brief add a line in the form for the purchase ledger
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4938 - phpcompta/trunk/html/js,
phpcompta-dev <=