From bbefae114ad791448380b677d293cc2b0155d149 Mon Sep 17 00:00:00 2001 From: Felipe Calves Date: Thu, 16 Apr 2026 18:14:34 -0400 Subject: [PATCH] fix: tratar vTotTrib nullable em DanfeNfceDocument e atualizar versao do PackageReference --- NFe.Danfe.QuestPdf/ImpressaoNfce/DanfeNfceDocument.cs | 2 +- NFe.Danfe.QuestPdf/NFe.Danfe.QuestPdf.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NFe.Danfe.QuestPdf/ImpressaoNfce/DanfeNfceDocument.cs b/NFe.Danfe.QuestPdf/ImpressaoNfce/DanfeNfceDocument.cs index adde1b3a6..30f24fa19 100644 --- a/NFe.Danfe.QuestPdf/ImpressaoNfce/DanfeNfceDocument.cs +++ b/NFe.Danfe.QuestPdf/ImpressaoNfce/DanfeNfceDocument.cs @@ -278,7 +278,7 @@ private void Rodape(IContainer container) r.RelativeItem().AlignRight().Column(c => { - c.Item().Text($"R$ {_nfe.infNFe.total.ICMSTot.vTotTrib:N2}").FontSize(_tamanhoFontePadrao); + c.Item().Text($"R$ {_nfe.infNFe.total.ICMSTot.vTotTrib ?? 0:N2}").FontSize(_tamanhoFontePadrao); }); }); diff --git a/NFe.Danfe.QuestPdf/NFe.Danfe.QuestPdf.csproj b/NFe.Danfe.QuestPdf/NFe.Danfe.QuestPdf.csproj index 358752be6..a45de129d 100644 --- a/NFe.Danfe.QuestPdf/NFe.Danfe.QuestPdf.csproj +++ b/NFe.Danfe.QuestPdf/NFe.Danfe.QuestPdf.csproj @@ -28,7 +28,7 @@ - +