yypsybs
2023-09-09 3cb5a54def670d97301f07170fcaad213bfc54f2
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
Quintiq file version 2.0
#parent: #root
Method CanRemoveOperationLink (
  output String feedback_o,
  OperationOutputs sourceoperationoutputs
) remote as Boolean
{
  Description:
  [*
    Returns true if the operation outputs are dropped onto an operation such that
    each of the operations of the operation output  and the target PISP are already link
  *]
  TextBody:
  [*
    // Adhi Feb-12-2016 (created)
    
    isvalid := forall( sourceoperationoutputs, Elements.ProductInStockingPoint_MP, pisp,
                       pisp = this.ProductInStockingPoint_MP() );
    
    if( not isvalid )
    {
      feedback_o := Translations::MP_PISPNodeInRouting_CanDropOperationOutputs_IncorrectPISP();
    }
    
    return isvalid;
  *]
}