|
|
{% extends "base.html.j2" %} |
|
|
{% import "components.html.j2" as ui %} |
|
|
|
|
|
{% block content %} |
|
|
|
|
|
<header class="doc-header"> |
|
|
<h1>Scheduled Script 路 {{ doc.metadata.description or doc.metadata.script_type }}</h1> |
|
|
<p class="doc-header-meta"> |
|
|
SuiteScript {{ doc.metadata.suitescript_version or "N/D" }} |
|
|
</p> |
|
|
<p class="muted">Procesos peri贸dicos y lotes programados.</p> |
|
|
</header> |
|
|
|
|
|
{{ ui.metadata_block(doc.metadata) }} |
|
|
{{ ui.summary_block(doc.summary) }} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if doc.input_data %} |
|
|
<div class="section"> |
|
|
<h2>Entrada</h2> |
|
|
|
|
|
{% if doc.input_data.details %} |
|
|
<p>{{ doc.input_data.details }}</p> |
|
|
{% endif %} |
|
|
|
|
|
{% if doc.input_data.parameters %} |
|
|
{{ ui.table_block("Par谩metros", doc.input_data.parameters, [ |
|
|
{"field": "id", "title": "Par谩metro"}, |
|
|
{"field": "description", "title": "Descripci贸n"} |
|
|
]) }} |
|
|
{% endif %} |
|
|
|
|
|
{% if doc.input_data.filters %} |
|
|
{{ ui.table_block("Filtros", doc.input_data.filters, [ |
|
|
{"field": "field", "title": "Campo"}, |
|
|
{"field": "operator", "title": "Operador"}, |
|
|
{"field": "value", "title": "Valor"} |
|
|
]) }} |
|
|
{% endif %} |
|
|
|
|
|
{% if doc.input_data.columns %} |
|
|
{{ ui.table_block("Columnas", doc.input_data.columns, [ |
|
|
{"field": "name", "title": "Nombre"}, |
|
|
{"field": "label", "title": "Etiqueta"} |
|
|
]) }} |
|
|
{% endif %} |
|
|
</div> |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if doc.logic %} |
|
|
<div class="section"> |
|
|
<h2>L贸gica</h2> |
|
|
|
|
|
{% if doc.logic.steps %} |
|
|
<p>{{ doc.logic.steps }}</p> |
|
|
{% endif %} |
|
|
|
|
|
{% if doc.logic.loops %} |
|
|
{{ ui.list_block("Bucles", doc.logic.loops) }} |
|
|
{% endif %} |
|
|
|
|
|
{% if doc.logic.conditions %} |
|
|
{{ ui.list_block("Condiciones", doc.logic.conditions) }} |
|
|
{% endif %} |
|
|
</div> |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if doc.record_operations %} |
|
|
{{ ui.table_block("Operaciones con registros", doc.record_operations, [ |
|
|
{"field": "type", "title": "Operaci贸n"}, |
|
|
{"field": "record", "title": "Record"}, |
|
|
{"field": "details", "title": "Detalles"} |
|
|
]) }} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if doc.searches %} |
|
|
{{ ui.table_block("B煤squedas", doc.searches, [ |
|
|
{"field": "type", "title": "Tipo"}, |
|
|
{"field": "filters", "title": "Filtros"}, |
|
|
{"field": "columns", "title": "Columnas"} |
|
|
]) }} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if doc.governance %} |
|
|
<div class="section"> |
|
|
<h2>Governance</h2> |
|
|
|
|
|
{% if doc.governance.usage_checks %} |
|
|
<p><strong>Usage checks:</strong> {{ doc.governance.usage_checks }}</p> |
|
|
{% endif %} |
|
|
|
|
|
{% if doc.governance.yielding %} |
|
|
<p><strong>Yielding:</strong> {{ doc.governance.yielding }}</p> |
|
|
{% endif %} |
|
|
|
|
|
{% if doc.governance.task_rescheduling %} |
|
|
<p><strong>Task rescheduling:</strong> {{ doc.governance.task_rescheduling }}</p> |
|
|
{% endif %} |
|
|
</div> |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if doc.errors %} |
|
|
{% if doc.errors is mapping %} |
|
|
{{ ui.list_block("Escenarios de error", doc.errors.scenarios or []) }} |
|
|
{{ ui.list_block("Manejo", doc.errors.handling or []) }} |
|
|
{% else %} |
|
|
{{ ui.table_block("Errores", doc.errors, [ |
|
|
{"field": "scenario", "title": "Escenario"}, |
|
|
{"field": "handling", "title": "Manejo"} |
|
|
]) }} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if doc.side_effects %} |
|
|
{{ ui.list_block("Side effects", doc.side_effects) }} |
|
|
{% endif %} |
|
|
|
|
|
{% endblock %} |
|
|
|