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
/** | |
@author Alejo Sotelo <alejosotelo.com.ar> | |
@date 2022-07-20 | |
*/ | |
async function getFacturas(from, to, tipoComprobante) { | |
var query = encodeURIComponent(from + '+-+' + to + '&tiposComprobantes[]=' + tipoComprobante) | |
var r = await fetch("https://serviciosjava2.afip.gob.ar/mcmp/jsp/ajax.do?f=generarConsulta&t=E&fechaEmision=" + query, { |
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
/** | |
* Se le pasan las horas (String) como parámetro, le hace un split por salto de linea | |
* y se suman. | |
* Lo uso para exportar las horas de toggl y contabilizar las horas trabajadas. | |
*/ | |
function sumarHoras(horas) { | |
if (!Array.isArray(horas)) { | |
horas = horas.split('\n') | |
} |
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
/** | |
Buscar Cauciones en https://invertironline.com/ | |
Hay que ejecutar este script abriendo la consola dentro de invertironline.com y con la sesión iniciada. | |
En este ejemplo busca cauciones con una tasa de interés mínima de 130% para un monto mínimo de $100.000 de 1 a 30 días como máximo. | |
*/ | |
async function getCauciones(dias) { | |
const response = await fetch("https://iol.invertironline.com/Mercado/GetCaucionPuntas", { | |
"credentials": "include", | |
"headers": { |
OlderNewer