[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4733 - phpcompta/tags/rel600/html/js
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4733 - phpcompta/tags/rel600/html/js |
Date: |
Wed, 25 Jan 2012 00:56:11 +0100 (CET) |
Author: danydb
Date: 2012-01-25 00:56:11 +0100 (Wed, 25 Jan 2012)
New Revision: 4733
Modified:
phpcompta/tags/rel600/html/js/acc_ledger.js
Log:
Probl?\195?\168me ajout ligne dans VEN / ACH si non assujetti TVA
Modified: phpcompta/tags/rel600/html/js/acc_ledger.js
===================================================================
--- phpcompta/tags/rel600/html/js/acc_ledger.js 2012-01-24 23:44:06 UTC (rev
4732)
+++ phpcompta/tags/rel600/html/js/acc_ledger.js 2012-01-24 23:56:11 UTC (rev
4733)
@@ -163,7 +163,7 @@
}
catch (e)
{
- alert("success_update_bank".e.message);
+ alert("success_update_bank"+e.message);
}
}
/**
@@ -265,11 +265,12 @@
*/
function ledger_add_row()
{
+ try{
style='class="input_text"';
var mytable=g("sold_item").tBodies[0];
var ofirstRow=mytable.rows[1];
var line=mytable.rows.length;
- var nCell=9;
+ var nCell=mytable.rows[1].cells.length;
var row=mytable.insertRow(line);
var nb=g("nb_item");
for (var e=0;e<nCell;e++)
@@ -290,11 +291,12 @@
g("e_march"+nb.value+"_price").value='0';
g("e_march"+nb.value).value="";
g("e_quant"+nb.value).value="1";
- g("e_march"+nb.value+"_tva_amount").value=0;
+ if ($("e_march"+nb.value+"_tva_amount"))
g("e_march"+nb.value+"_tva_amount").value=0;
nb.value++;
new_tt.evalScripts();
+ } catch(e) { alert(e.message);}
}
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4733 - phpcompta/tags/rel600/html/js,
phpcompta-dev <=