Compare commits
No commits in common. "302b17287cb756876d944c6d2f6e47279a0a8edd" and "b864880c5c92a56545e88fc9138e12fd25c337db" have entirely different histories.
302b17287c
...
b864880c5c
10
kole.html
10
kole.html
@ -9,21 +9,17 @@
|
||||
<table>
|
||||
<tr><td>Ausgangsbetrag:</td><td><input type="radio" name="b" value="e" id="bb" class="bb" checked="checked"/><label for="bb">Brutto</label><input type="radio" name="b" value="b" id="bn" class="bb"/><label for="bn">Netto</label><input type="radio" name="b" value="k" id="bk" class="bb"/><label for="bk">KoLe</label></td></tr>
|
||||
<tr><td>Brutto</td><td><input type="number" step="0.01" id="e" value="100.00"/> €</td></tr>
|
||||
<tr><td>Umsatzsteuersatz</td><td><input type="number" step="0.01" id="u" value="19.00"/> %</td></tr>
|
||||
<tr><td>Umsatzsteuer</td><td><input type="number" step="0.01" id="us" value="0.00"/> €</td></tr>
|
||||
<tr><td>Umsatzsteuer</td><td><input type="number" step="0.01" id="u" value="19.00"/> %</td></tr>
|
||||
<tr><td>Netto</td><td><input type="number" step="0.01" id="n" value="0.00"/> €</td></tr>
|
||||
<tr><td>Entropieumlagesatz</td><td><input type="number" step="0.01" id="z" value="23.00"/> %</td></tr>
|
||||
<tr><td>Entropieumlage</td><td><input type="number" step="0.01" id="eu" value="23.00"/> €</td></tr>
|
||||
<tr><td>Entropieumlage</td><td><input type="number" step="0.01" id="z" value="23.00"/> %</td></tr>
|
||||
<tr><td>KoLe</td><td><input type="number" step="0.01" id="k" value="0.00"/> €</td></tr>
|
||||
<tr><td> </td><td><input value="Berechnen" id="b" type="button"/></td></tr>
|
||||
</table>
|
||||
<script>
|
||||
var e=document.getElementById('e');
|
||||
var u=document.getElementById('u');
|
||||
var us=document.getElementById('us');
|
||||
var n=document.getElementById('n');
|
||||
var z=document.getElementById('z');
|
||||
var eu=document.getElementById('eu');
|
||||
var k=document.getElementById('k');
|
||||
var bb=document.getElementById('bb');
|
||||
var bn=document.getElementById('bn');
|
||||
@ -48,8 +44,6 @@
|
||||
e.value = roundCents( getFormFloat(n) * ( 1 + getFormFloat(u) / 100 ) );
|
||||
k.value = roundCents( getFormFloat(n) * ( 1 - getFormFloat(z) / 100 ) );
|
||||
}
|
||||
us.value = roundCents(e.value* getFormFloat(u) / 100 );
|
||||
eu.value = roundCents(n.value* getFormFloat(z) / 100 );
|
||||
});
|
||||
e.addEventListener('change', function(){bb.checked = true;});
|
||||
n.addEventListener('change', function(){bn.checked = true;});
|
||||
|
Loading…
Reference in New Issue
Block a user