aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/Dispensing
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2021-03-11 13:29:31 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2021-03-11 13:29:31 +0200
commit32bc27bf39c381e4625dd5635e4bc29423190ea8 (patch)
tree8315f4e42b3c7653db1989f2e6998e3034583ce1 /Software/Visual_Studio/Tango.BL/Dispensing
parentd2a79469ca31f225530d581d108b4a4c8bb6f1bd (diff)
downloadTango-32bc27bf39c381e4625dd5635e4bc29423190ea8.tar.gz
Tango-32bc27bf39c381e4625dd5635e4bc29423190ea8.zip
Fixed TI auto calc by Standard and Light Inks.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Dispensing')
-rw-r--r--Software/Visual_Studio/Tango.BL/Dispensing/TransparentLiquidDispensingCalc.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Dispensing/TransparentLiquidDispensingCalc.cs b/Software/Visual_Studio/Tango.BL/Dispensing/TransparentLiquidDispensingCalc.cs
index ee36fd9ef..c6319499f 100644
--- a/Software/Visual_Studio/Tango.BL/Dispensing/TransparentLiquidDispensingCalc.cs
+++ b/Software/Visual_Studio/Tango.BL/Dispensing/TransparentLiquidDispensingCalc.cs
@@ -24,7 +24,7 @@ namespace Tango.BL.Dispensing
{
if (liquidVolume.Configuration != null && liquidVolume.RML != null && liquidVolume.ProcessParametersTable != null)
{
- double nlPcmSum = liquidVolume.BrushStop.LiquidVolumes.Where(x => (IdsPackFormulas)x.IdsPack.IdsPackFormula.Code == IdsPackFormulas.StandardColor).Sum(x => x.NanoliterPerCentimeter);
+ double nlPcmSum = liquidVolume.BrushStop.LiquidVolumes.Where(x => x.IdsPack.LiquidType.HasPigment).Sum(x => x.NanoliterPerCentimeter);
nlPcmSum = Math.Max(0, liquidVolume.ProcessParametersTable.MinInkUptake - nlPcmSum);
@@ -50,7 +50,7 @@ namespace Tango.BL.Dispensing
{
if (liquidVolume.ProcessParametersTable != null)
{
- return Math.Max(100d - liquidVolume.BrushStop.LiquidVolumes.Where(x => (IdsPackFormulas)x.IdsPack.IdsPackFormula.Code == IdsPackFormulas.StandardColor).Sum(x => x.Volume), 0);
+ return Math.Max(100d - liquidVolume.BrushStop.LiquidVolumes.Where(x => x.IdsPack.LiquidType.HasPigment).Sum(x => x.Volume), 0);
}
else
{