PageSourceSearch

https://seguimiento.tricot.cl/assets/js/app.js

js tricot.cl collected 2026-10-01 15:47:44 UTC 1,469 bytes, 45 lines download raw bytes

1
2
3/** Valida que el rut del cliente es el mismo de la devolución */
4function checkCustomerIdAccount(check, customerId, rut){
5    if (check.checked == false){
6        if(customerId !== rut.value){
7            rut.setCustomValidity(" RUT de cliente, no coincide con rut ingresado. "); 
8            rut.nextSibling.nextSibling.innerHTML = " RUT de cliente, no coincide con rut ingresado. ";
9            return false;
10        }
11    }
12}
13
14/** Valida que los dos numeros de cuenta ingresados sean identicos */
15function validateAccountsNumbers(accountNumber1, accountNumber2){
16
17    if(accountNumber1.value !== accountNumber2.value){
18        accountNumber2.setCustomValidity("Los números de cuenta deben ser identicos");
19        return false;
20    }
21
22    accountNumber2.setCustomValidity('');
23
24}
25
26/** Autocompleta cuenta rut con banco estado */
27function cuentaRut(rut, bank, accountType, accountNumber1, accountNumber2){
28
29    let bankValue = bank.options[bank.selectedIndex].value;
30    let accountTypeValue = accountType.options[accountType.selectedIndex].value;
31
32    if(bankValue == "ESTADO" && accountTypeValue == "RUTESTADO-VISTA"){
33        var valor = rut.value.replace('-','');
34        valor = valor.slice(0, -1)
35        accountNumber1.value = valor;
36        accountNumber2.value = valor;
37        accountNumber1.readOnly = true;
38        accountNumber2.readOnly = true;
39
40    }else{
41        accountNumber1.readOnly = false;
42        accountNumber2.readOnly = false;
43    }
44
45}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.