TopSapp: fix API show blocked services from client
Signed-off-by: Rodrigo Bertoldo de Sousa Martins <rodrigo.sousa.577@gmail.com>
This commit is contained in:
1 parent
d4bd364690
commit
b154db5aa9
1 file changed
+5
-2
+5
-2
@@ -3880,8 +3880,11 @@ Digite /help para ver todos os comandos disponíveis!
|
||||
]
|
||||
];
|
||||
|
||||
// Adicionar botão para gerar PDF da primeira fatura
|
||||
if (resultado.faturasPorServico.length > 0 && resultado.faturasPorServico[0].faturas.length > 0) {
|
||||
// Adicionar botão para gerar PDF da primeira fatura (se houver)
|
||||
if (resultado.faturasPorServico &&
|
||||
resultado.faturasPorServico.length > 0 &&
|
||||
resultado.faturasPorServico[0].faturas &&
|
||||
resultado.faturasPorServico[0].faturas.length > 0) {
|
||||
const primeiraFatura = resultado.faturasPorServico[0].faturas[0];
|
||||
keyboard.push([
|
||||
{ text: '📄 Gerar Boleto PDF', callback_data: `boleto_pdf_${primeiraFatura.id}_${location}` }
|
||||
|
||||
Reference in new issue
Block a user