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->invoice_id} {$nota->nfe_id} - {$nota->created_at|date_format:"%d/%m/%Y %H:%M"} + {$nota->created_at|date_format:"%d/%m/%Y %H:%M"} - {$nota->firstname} {$nota->lastname} {if $nota->companyname} ({$nota->companyname}) + {else} + {$nota->firstname} {$nota->lastname} {/if} R${$nota->services_amount} - {statusLabel data=$nota->status} + +
+ + {statusLabel data=$nota->status} + +
+ {if $nota->issue_note_conditions} +{* *} +

{$nota->issue_note_conditions}

+ {/if} + +