Skip to content

Commit

Permalink
Actualizar
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucasponzoni committed Feb 20, 2025
1 parent c69258f commit e03e78f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
17 changes: 12 additions & 5 deletions js/facturacionMeli.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,18 @@ document.addEventListener('DOMContentLoaded', () => {
// Verificar cada venta
const promises = allData.map(sale => {
if (sale.trackingNumber && !sale.cliente) {
return checkDespachosLogisticos(sale.trackingNumber, sale.idOperacion)
.then(updated => {
if (updated) totalUpdated++;
})
.catch(() => totalNotFound++);
const currentHour = new Date().getHours();
if (currentHour >= 16) {
return checkDespachosLogisticos(sale.trackingNumber, sale.idOperacion)
.then(updated => {
if (updated) totalUpdated++;
})
.catch(() => totalNotFound++);
} else {
console.log('La búsqueda de clientes se ejecutará luego de las 16hs');
totalNotFound++;
return Promise.resolve();
}
} else {
totalNotFound++;
return Promise.resolve();
Expand Down
8 changes: 6 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -717,10 +717,10 @@ button:hover {
text-align: center;
padding: 8px;
margin-bottom: -5px;
color: #ffffff;
color: indigo;
font-weight: 500;
border: 1px solid cornflowerblue;
background-color: indigo;
background-color: rgb(231, 220, 255);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Fuente de macOS */
transition: background-color 0.3s ease, box-shadow 0.3s ease;
z-index: -100;
Expand All @@ -730,6 +730,10 @@ button:hover {
margin-right: 5px;
}

.cliente > img{
width: 30px;
}

.info-paq{
margin-right: 5px;
}
Expand Down

0 comments on commit e03e78f

Please sign in to comment.