Created
December 5, 2019 06:09
-
-
Save nachoaguirre/96459aa6134e603296d1a51144659221 to your computer and use it in GitHub Desktop.
Calculo para emitir boleta chile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// Calculo para hacer la boleta: [valor_a_recibir]*1.1111111111111112 | |
var montoLiquido = 660000; | |
var impuesto = (montoLiquido*1.1111111111111112)-montoLiquido; | |
var montoBoleta = montoLiquido*1.1111111111111112; | |
document.write("Monto a recibir: $"+montoLiquido); | |
document.write("<br />"); | |
document.write("Impuesto: $"+parseInt(impuesto)); | |
document.write("<br />"); | |
document.write("Hacer la boleta por: $"+parseInt(montoBoleta)); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment