1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
| Quintiq file version 2.0
| #parent: #root
| Method CanIncludeExcludeProduct (
| output String feedback_o,
| Product_MPs products,
| String productstatus
| ) remote as Boolean
| {
| Description: 'Enable or disable include/exclude button for product'
| TextBody:
| [*
| // If exist not check among selection, we allow user to use the check feature
| // If exist check among selection, we allow user to use the uncheck feature
| value := true;
|
| if( this.IsWorld() )
| {
| value := false;
| feedback_o := Translations::MP_OptimizerPuzzleBase_CannotEditWorld();
| }
| else
| {
| value := exists( this,
| SubsetProductInOptimizerPuzzleWip,
| spiop,
| exists( products,
| Elements,
| product,
| product = spiop.Product_MP()
| and spiop.Status() <> productstatus ) )
| }
|
| return value;
| *]
| }
|
|