diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-06-21 16:45:38 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-06-21 16:45:38 +0300 |
commit | cd657e10b4fd0716b2f4e7f869011ca93db313d8 (patch) | |
tree | 685ffd017a333d04c765d58be971a1df82381235 | |
parent | e4aa8dff931319f085435353fdcdb2dc52b43fef (diff) |
Fill cells with null if amount is zero
-rw-r--r-- | RhSolutions.AddIn/Services/ExcelWriterBase.cs | 9 |
1 files changed, 8 insertions, 1 deletions
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; + } } } } |