diff --git a/modules/addons/NFEioServiceInvoices/callback.php b/modules/addons/NFEioServiceInvoices/callback.php index 972fbca..1db7b5c 100644 --- a/modules/addons/NFEioServiceInvoices/callback.php +++ b/modules/addons/NFEioServiceInvoices/callback.php @@ -86,6 +86,7 @@ $nf_id = $payload['id']; $nf_status = $payload['status']; $nf_flow_status = $payload['flowStatus']; +$nf_flow_message = $payload['flowMessage'] ?? ''; $nf_environment = $payload['environment']; //verificar o ambiente @@ -150,6 +151,7 @@ 'environment' => $nfe['environment'], 'flow_status' => $nf_flow_status, 'pdf' => $nfe['pdf'], + 'issue_note_conditions' => $nf_flow_message, // utilizando coluna existente, mas sem uso, para armazenar a mensagem do flow ]; try { diff --git a/modules/addons/NFEioServiceInvoices/lib/templates/admin/index.tpl b/modules/addons/NFEioServiceInvoices/lib/templates/admin/index.tpl index 7dc77d7..9b503e1 100644 --- a/modules/addons/NFEioServiceInvoices/lib/templates/admin/index.tpl +++ b/modules/addons/NFEioServiceInvoices/lib/templates/admin/index.tpl @@ -33,7 +33,7 @@ {elseif $data == 'CancelFailed'} Nota não foi cancelada com sucesso {elseif $data == 'IssueFailed'} - Emissão da nota sem sucesso + Erro ao emitir a nota {elseif $data == 'PullFromCityHall'} PullFromCityHall {elseif $data == 'WaitingDefineRpsNumber'} @@ -97,24 +97,37 @@
{$nota->issue_note_conditions}
+ {/if} + +