turnero: parámetro ?autoprint=1 para imprimir automáticamente al cargar
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
538bc0f35a
commit
a70f49f42b
@@ -229,6 +229,7 @@ $todos = array_merge($datosPrefilled, $datosCliente);
|
||||
$modoEditar = $modoTurnero && $envio['estado'] !== 'firmado';
|
||||
$embebido = isset($_GET['embed']) && $_GET['embed'] === '1';
|
||||
$compact = $embebido && isset($_GET['compact']);
|
||||
$autoprint = isset($_GET['autoprint']) && $_GET['autoprint'] === '1';
|
||||
|
||||
// Firma pre-guardada del profesional logueado (para botón de 1 clic)
|
||||
$firmaProfPreguardada = null;
|
||||
@@ -2760,5 +2761,8 @@ const topaz = (() => {
|
||||
})();
|
||||
<?php endif; ?>
|
||||
</script>
|
||||
<?php if ($autoprint): ?>
|
||||
<script>window.addEventListener('load', function() { setTimeout(function() { window.print(); }, 600); });</script>
|
||||
<?php endif; ?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user