diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-03-11 13:29:31 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-03-11 13:29:31 +0200 |
| commit | 32bc27bf39c381e4625dd5635e4bc29423190ea8 (patch) | |
| tree | 8315f4e42b3c7653db1989f2e6998e3034583ce1 /Software/Visual_Studio/Tango.BL/Dispensing | |
| parent | d2a79469ca31f225530d581d108b4a4c8bb6f1bd (diff) | |
| download | Tango-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.cs | 4 |
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 { |
