Carregando…
+ ) : ( +| Componente | +Documento | +NCM | +CFOP | +Município | +Natureza | +Vigência | +Status | +
|---|---|---|---|---|---|---|---|
| {BILLING_COMPONENT_LABELS[profile.billing_component]} | +{DOCUMENT_TYPE_LABELS[profile.document_type]} | ++ {profile.ncm_id ? ncmLookup.get(profile.ncm_id) ?? profile.ncm_id : "—"} + | ++ {profile.cfop_id ? cfopLookup.get(profile.cfop_id) ?? profile.cfop_id : "—"} + | ++ {profile.municipality_id ? municipalityLookup.get(profile.municipality_id) ?? profile.municipality_id : "—"} + | ++ {profile.operation_nature_id ? natureLookup.get(profile.operation_nature_id) ?? profile.operation_nature_id : "—"} + | ++ {formatDateBR(profile.valid_from)} — {profile.valid_until ? formatDateBR(profile.valid_until) : "atual"} + | +
+ |
+
Novo perfil fiscal
+ {createError ? ( +Carregando ticket…
+Causa raiz
+{ticket.root_cause}
+Notas de resolução
+{ticket.resolution_notes}
+{ticket.description}
+Nenhuma política de SLA aplicada a este ticket.
+Prazo de 1ª resposta
+{formatDateTimeBR(slaTimer.first_response_due_at)}
+Prazo de resolução
+{formatDateTimeBR(slaTimer.resolution_due_at)}
++ Tempo pausado acumulado: {Math.round(slaTimer.accumulated_pause_seconds / 60)} min +
+ ) : null} ++ Status {TICKET_STATUS_LABEL[ticket.status]} é final — nenhuma transição disponível. +
+Nenhuma alteração de status registrada ainda.
+ ) : ( ++ {entry.from_status ? `${TICKET_STATUS_LABEL[entry.from_status]} → ` : ""} + {TICKET_STATUS_LABEL[entry.to_status]} +
+{formatDateTimeBR(entry.changed_at)}
+ {entry.reason ?{entry.reason}
: null} +Nenhum comentário registrado ainda.
+ ) : ( ++ {comment.author_user_id === currentUserId + ? "Você" + : comment.author_user_id ?? "Sistema"} +
+ {formatDateTimeBR(comment.created_at)} + {comment.is_internal ?{comment.body}
+Carregando clientes e contratos…
+ ) : ( + + )} +Carregando tickets…
+ ) : tickets && tickets.length === 0 ? ( +Nenhum ticket cadastrado ainda.
+ ) : tickets ? ( +| Protocolo | +Título | +Categoria | +Prioridade | +Status | +SLA | +Aberto em | +
|---|---|---|---|---|---|---|
| + + {ticket.protocol_number} + + | +{ticket.title} | ++ {ticket.category} + {ticket.subcategory ? ( + {ticket.subcategory} + ) : null} + | +
+ |
+
+ |
+
+ {overdue === true ? (
+ |
+ {formatDateBR(ticket.created_at)} | +