diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-01-27 08:54:39 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-01-27 08:54:39 +0200 |
| commit | e204e6ac5d04114778b5b836a3e3707e819ad349 (patch) | |
| tree | 0eb03bfd253cf6f26c72b2f4ccb08b9e03369b5a /Software/Visual_Studio/Tango.BL/Entities | |
| parent | 558c9c58a8be65c2a8430a21de857b335efee491 (diff) | |
| download | Tango-e204e6ac5d04114778b5b836a3e3707e819ad349.tar.gz Tango-e204e6ac5d04114778b5b836a3e3707e819ad349.zip | |
X1 Closure.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/Entities/Job.cs | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/Job.cs b/Software/Visual_Studio/Tango.BL/Entities/Job.cs index 4e115f5e8..d748405cd 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/Job.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/Job.cs @@ -99,9 +99,12 @@ namespace Tango.BL.Entities { get { - if (NumberOfSpools >= 4) + if (Machine.Type == MachineTypes.Eureka) { - return LengthIncludingNumberOfUnits * NumberOfSpools; + if (NumberOfSpools >= 4) + { + return LengthIncludingNumberOfUnits * NumberOfSpools; + } } return LengthIncludingNumberOfUnits; @@ -129,9 +132,12 @@ namespace Tango.BL.Entities { get { - if (NumberOfSpools >= 4) + if (Machine.Type == MachineTypes.Eureka) { - return WeightIncludingNumberOfUnits * NumberOfSpools; + if (NumberOfSpools >= 4) + { + return WeightIncludingNumberOfUnits * NumberOfSpools; + } } return WeightIncludingNumberOfUnits; @@ -144,10 +150,13 @@ namespace Tango.BL.Entities { get { + if (Machine.Type == MachineTypes.Eureka) + { if (NumberOfSpools >= 4) { return NumberOfUnits * NumberOfSpools; } + } return NumberOfUnits; } } |
