Fill cells with null if amount is zero

This commit is contained in:
Sergey Chebotar 2023-06-21 16:45:38 +03:00
parent e4aa8dff93
commit cd657e10b4

View File

@ -133,11 +133,18 @@ namespace RhSolutions.Services
cell.AddValue(amount); cell.AddValue(amount);
} }
else else
{
if (amount == 0)
{
cell.Value2 = null;
}
else
{ {
cell.Value2 = amount; cell.Value2 = amount;
} }
} }
} }
}
private void FillAmounts(KeyValuePair<Product, double> positionAmount, params int[] columns) private void FillAmounts(KeyValuePair<Product, double> positionAmount, params int[] columns)
{ {