forked from gnibeil/simplekolecalc
Compare commits
2 Commits
a4cbdcc725
...
3e30f8fce6
Author | SHA1 | Date | |
---|---|---|---|
3e30f8fce6 | |||
|
aae2f07680 |
@ -16,7 +16,7 @@ Dazu schlicht im Repository die rohe [kole.html](https://git.wtf-eg.de/vv01f/sim
|
|||||||
|
|
||||||
## Verbesserungen
|
## Verbesserungen
|
||||||
|
|
||||||
Sehr willkommen sind Beiträge über Pullrequests oder Diskussionen in den Issues. Wenn das Gitea nicht so sehr liegt, gerne auch [im Foren-Thread](https://forum.wtf-eg.de/t/brutto-nette-rechner-fuer-geno-interna/919) oder eine Nachricht im Forum an Beteiligte schreiben.
|
Sehr willkommen sind Beiträge über Pullrequests oder Diskussionen in den Issues. Wenn das Gitea nicht so sehr lieht, gerne auch [im Foren-Thread](https://forum.wtf-eg.de/t/brutto-nette-rechner-fuer-geno-interna/919) oder eine Nachricht im Forum an Beteiligte schreiben.
|
||||||
|
|
||||||
|
|
||||||
## Beitragende
|
## Beitragende
|
||||||
|
70
kole.html
70
kole.html
@ -62,51 +62,41 @@
|
|||||||
<fieldset>
|
<fieldset>
|
||||||
<legend></legend>
|
<legend></legend>
|
||||||
<section class="radiogroup">
|
<section class="radiogroup">
|
||||||
<legend>Eingangsgröße</legend><!--
|
<legend>Eingangsgröße</legend>
|
||||||
--><input accesskey="b" type="radio" name="b" value="e" id="bb" class="bb" checked="checked"/> <label for="bb"><u>B</u>rutto</label><!--
|
<input accesskey="b" type="radio" name="b" value="e" id="bb" class="bb" checked="checked"/><label for="bb"><u>B</u>rutto</label><input accesskey="n" type="radio" name="b" value="b" id="bn" class="bb"/><label for="bn"><u>N</u>etto</label><input accesskey="k" type="radio" name="b" value="k" id="bk" class="bb"/><label for="bk"><u>K</u>oLe</label>
|
||||||
--><input accesskey="n" type="radio" name="b" value="b" id="bn" class="bb"/> <label for="bn"><u>N</u>etto</label><!--
|
|
||||||
--><input accesskey="k" type="radio" name="b" value="k" id="bk" class="bb"/> <label for="bk"><u>K</u>oLe</label>
|
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<div>
|
<div>
|
||||||
<label for="e">Br<u>u</u>tto</label>
|
<label for="e">Br<u>u</u>tto</label>
|
||||||
<input accesskey="u" type="number" step="0.01" id="e" value="100.00"/> €
|
<input accesskey="u" type="number" step="0.01" id="e" value="100.00"/> €
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="u">Umsatzsteuersatz</label>
|
<label for="u">Umsatzsteuersatz</label>
|
||||||
<input type="number" step="0.01" id="u" value="19.00"/> %
|
<input type="number" step="0.01" id="u" value="19.00"/> %
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="us">Umsatzsteuer</label>
|
<label for="us">Umsatzsteuer</label>
|
||||||
<input readonly="readonly" type="number" step="0.01" id="us" value="0.00"/> €
|
<input readonly="readonly" type="number" step="0.01" id="us" value="0.00"/> €
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="n">N<u>e</u>tto</label>
|
<label for="n">N<u>e</u>tto</label>
|
||||||
<input accesskey="e" type="number" step="0.01" id="n" value="0.00"/> €
|
<input accesskey="e" type="number" step="0.01" id="n" value="0.00"/> €
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="ec">Entropie-Tarif</label><!-- ggf. künftig Grundlage wie Handbuch/Dokumentation verlinken -->
|
<label for="z">Entropieumlagesatz</label>
|
||||||
<select id="ec">
|
<input type="number" step="0.01" id="z" value="23.00"/> %
|
||||||
<option value="l" accesskey="l" name="low">Umsatz ≤ 1.000 €</option><!-- low: <=1 TEUR -->
|
|
||||||
<option value="h" accesskey="h" name="high">Umsatz > 1.000 €</option><!-- high: >1 TEUR -->
|
|
||||||
<option value="c" accesskey="c" name="custom">nach Vereinbarung</option><!-- custom: separate agreement -->
|
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="z">Entropieumlagesatz</label>
|
<label for="eu">Entropieumlage</label>
|
||||||
<input type="number" step="0.01" id="z" value="23.00"/> %
|
<input readonly="readonly" type="number" step="0.01" id="eu" value="23.00"/> €
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="eu">Entropieumlage</label>
|
<label for="k">K<u>o</u>Le</label>
|
||||||
<input readonly="readonly" type="number" step="0.01" id="eu" value="23.00"/> €
|
<input accesskey="o" type="number" step="0.01" id="k" value="0.00"/> €
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<label for="k">K<u>o</u>Le</label>
|
|
||||||
<input accesskey="o" type="number" step="0.01" id="k" value="0.00"/> €
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<button accesskey="r" id="b" type="button">Be<u>r</u>echnen</button>
|
<button accesskey="c" id="b" type="button">Bere<u>c</u>hnen</button>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
@ -123,7 +113,6 @@
|
|||||||
var bn=document.getElementById('bn');
|
var bn=document.getElementById('bn');
|
||||||
var bk=document.getElementById('bk');
|
var bk=document.getElementById('bk');
|
||||||
var s = document.getElementById('b');
|
var s = document.getElementById('b');
|
||||||
var c = document.getElementById('ec');
|
|
||||||
|
|
||||||
function getFormFloat(f){
|
function getFormFloat(f){
|
||||||
return parseFloat(f.value);
|
return parseFloat(f.value);
|
||||||
@ -148,31 +137,6 @@
|
|||||||
});
|
});
|
||||||
e.addEventListener('change', function(){bb.checked = true;});
|
e.addEventListener('change', function(){bb.checked = true;});
|
||||||
n.addEventListener('change', function(){bn.checked = true;});
|
n.addEventListener('change', function(){bn.checked = true;});
|
||||||
c.addEventListener('change', function(){
|
|
||||||
var selInd=this.selectedIndex;
|
|
||||||
console.log('Entropie-Tarif: '+selInd+'('+z.disabled+': '+z.value+')');
|
|
||||||
switch(selInd){
|
|
||||||
case 0: //low: <1.000 EUR revenue
|
|
||||||
//23.0 %
|
|
||||||
z.value='23.00';
|
|
||||||
z.disabled=true;
|
|
||||||
break;;
|
|
||||||
case 1: //high: >1.000 EUR revenue
|
|
||||||
//11.5 %
|
|
||||||
z.disabled=true;
|
|
||||||
z.value='11.50';
|
|
||||||
break;;
|
|
||||||
case 2: //custom: according toseparate agreement
|
|
||||||
z.disabled=false;
|
|
||||||
//~ z.focus();
|
|
||||||
break;;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// set entropy tax to standard value
|
|
||||||
c.selectedIndex=0;
|
|
||||||
z.value='23.00';
|
|
||||||
z.disabled=true;
|
|
||||||
// calc
|
|
||||||
s.click();
|
s.click();
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user