From cd657e10b4fd0716b2f4e7f869011ca93db313d8 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Wed, 21 Jun 2023 16:45:38 +0300 Subject: [PATCH] Fill cells with null if amount is zero --- RhSolutions.AddIn/Services/ExcelWriterBase.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/RhSolutions.AddIn/Services/ExcelWriterBase.cs b/RhSolutions.AddIn/Services/ExcelWriterBase.cs index 2a98b21..3ec5348 100644 --- a/RhSolutions.AddIn/Services/ExcelWriterBase.cs +++ b/RhSolutions.AddIn/Services/ExcelWriterBase.cs @@ -134,7 +134,14 @@ namespace RhSolutions.Services } else { - cell.Value2 = amount; + if (amount == 0) + { + cell.Value2 = null; + } + else + { + cell.Value2 = amount; + } } } }