Skip to content

Commit 4ccbf74

Browse files
Atualiza taxa de câmbio fixa para variável
Adiciona a variável `taxaFixaCambio` inicializada com `1d` para definir a taxa de câmbio fixa. Substitui o valor literal "1" na célula 29 pela nova variável, melhorando a legibilidade e a manutenção do código.
1 parent 0b65379 commit 4ccbf74

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/SAF-T.Mozambique/Generators/MozambiqueSaftGenerator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ public byte[] GenerateBytesExcel(AuditFile auditFile, FormatoOutput formatoOutpu
244244
{
245245
try
246246
{
247+
double taxaFixaCambio = 1d;
247248
if (auditFile == null)
248249
{
249250
throw new ArgumentNullException(nameof(auditFile), "O objeto AuditFile não pode ser nulo.");
@@ -345,7 +346,7 @@ public byte[] GenerateBytesExcel(AuditFile auditFile, FormatoOutput formatoOutpu
345346
row.CreateCell(26).SetCellValue(factura.DocumentTotals?.TaxPayable.ToString() ?? "0");
346347
row.CreateCell(27).SetCellValue(factura.DocumentTotals?.GrossTotal.ToString() ?? "0");
347348
row.CreateCell(28).SetCellValue(auditFile.Header?.CurrencyCode ?? string.Empty);
348-
row.CreateCell(29).SetCellValue("1"); // Taxa de Câmbio fixa como 1
349+
row.CreateCell(29).SetCellValue(taxaFixaCambio); // Taxa de Câmbio fixa como 1
349350
});
350351

351352
using var stream = new MemoryStream();

0 commit comments

Comments
 (0)