| Quintiq file version 2.0 | 
| #parent: #root | 
| Method SetOvertimeDurction ( | 
|   String outcome | 
| ) | 
| { | 
|   TextBody: | 
|   [* | 
|     // rislai Jul-10-2024 (created) | 
|     overtime := 0.0; | 
|     nextDayOvertime := 0.0; | 
|     if( outcome = "1" ){ | 
|       overtime := 0; | 
|       nextDayOvertime := 0.0; | 
|     }else if( outcome = "2" ){ | 
|       overtime := 0; | 
|       nextDayOvertime := 0.0; | 
|     }else if(outcome = "9+9"){ | 
|       overtime := 1; | 
|       nextDayOvertime := 1; | 
|     }else if(outcome = "10+10"){ | 
|       overtime := 2; | 
|       nextDayOvertime := 2; | 
|     }else if(outcome = "1(9)" or outcome = "1(9)"){ | 
|       overtime := 1; | 
|       nextDayOvertime := 0; | 
|     }else if(outcome = "1(10)" or outcome = "1(10)"){ | 
|       overtime := 2; | 
|       nextDayOvertime := 0; | 
|     }else if(outcome = "3"){ | 
|       overtime := 0; | 
|       nextDayOvertime := 0; | 
|     } | 
|     this.RealValue( this.RealValue() + overtime + nextDayOvertime ); | 
|   *] | 
| } |