From b919f75c83d9d949583a64ff1dfd432b6bd26175 Mon Sep 17 00:00:00 2001 From: Adriano Serighelli Date: Tue, 10 Jun 2025 10:24:33 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=B5es=20sem=C3=A2nticas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Download Faturas/Fatura.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Download Faturas/Fatura.cs b/Download Faturas/Fatura.cs index dee9d9d..f86e4b4 100644 --- a/Download Faturas/Fatura.cs +++ b/Download Faturas/Fatura.cs @@ -279,7 +279,7 @@ if (item.kind == kind_P) { - dadosTusd.Consumo_P = dadosTusd.Consumo_P + (item.billed / 1000); + dadosTusd.Consumo_P += item.billed / 1000; } break; @@ -295,7 +295,7 @@ if (item.kind == kind_FP) { - dadosTusd.Consumo_FP = dadosTusd.Consumo_FP + (item.billed / 1000); + dadosTusd.Consumo_FP += item.billed / 1000; } } else @@ -430,7 +430,7 @@ } } - if (dem_Reg_P != null && (Math.Round((decimal)dadosTusd.Consumo_FP, 2) == Math.Round((decimal)(consumo_Reg_FP * 1.025 / 1000) !, 2))) + if (dem_Reg_P != null && (Math.Round((decimal)dadosTusd.Consumo_FP, 2) == Math.Round((decimal)(consumo_Reg_FP * 1.025 / 1000) !, 2))) { dadosTusd.Dem_Reg_P = (float)(dem_Reg_P * 1.025); } @@ -439,7 +439,7 @@ dadosTusd.Dem_Reg_P = (float)dem_Reg_P; } - if (dem_Reg_FP != null && (Math.Round((decimal)dadosTusd.Consumo_FP, 2) == Math.Round((decimal)(consumo_Reg_FP * 1.025 / 1000) !, 2))) + if (dem_Reg_FP != null && (Math.Round((decimal)dadosTusd.Consumo_FP, 2) == Math.Round((decimal)(consumo_Reg_FP * 1.025 / 1000) !, 2))) { dadosTusd.Dem_Reg_FP = (float)(dem_Reg_FP * 1.025); }