DateToday replace by DateRef
This commit is contained in:
parent
b5bcb212e4
commit
ee3209c6a7
@ -74,7 +74,7 @@ class Metier_Defaillance_Detect
|
||||
protected $EvenTxt;
|
||||
protected $EvenDelete = 0;
|
||||
|
||||
protected $DateToday;
|
||||
protected $DateRef;
|
||||
|
||||
/**
|
||||
* Timeline des événements de défaillance
|
||||
@ -94,7 +94,7 @@ class Metier_Defaillance_Detect
|
||||
}
|
||||
|
||||
// Définir la date du jour
|
||||
$this->DateToday = date('Ymd');
|
||||
$this->DateRef = date('Ymd');
|
||||
|
||||
// Liste des événements au départ d'une procol
|
||||
$this->ListEvenProcol = include __DIR__ . '/EvenProcol.php';
|
||||
@ -314,7 +314,9 @@ class Metier_Defaillance_Detect
|
||||
'DateStart' => $this->SituationDateStart,
|
||||
'DateEnd' => $dateEnd,
|
||||
);
|
||||
file_put_contents('procol.log', print_r($this->Timeline, 1)."\n", FILE_APPEND);
|
||||
if ($this->debug) {
|
||||
file_put_contents('procol.log', print_r($this->Timeline, 1)."\n", FILE_APPEND);
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->debug) {
|
||||
|
@ -84,7 +84,7 @@ return array(
|
||||
'value' => 'CONTINUE',
|
||||
'params' => array(
|
||||
array( 'var' => 'Situation', 'op' => 'EGAL', 'value' => 'PL'),
|
||||
array( 'var' => 'PlanDateEnd', 'op' => 'MIN', 'value' => 'DateToday'),
|
||||
array( 'var' => 'PlanDateEnd', 'op' => 'MIN', 'value' => 'DateRef'),
|
||||
array( 'var' => 'Situation', 'op' => 'SET', 'value' => ''),
|
||||
),
|
||||
),
|
||||
@ -181,7 +181,7 @@ return array(
|
||||
'params' => array(
|
||||
array( 'var' => 'Situation', 'op' => 'EGAL', 'value' => 'P'),
|
||||
array( 'var' => 'InseeActif', 'op' => 'EGAL', 'value' => 1),
|
||||
array( 'var' => 'SituationDateEnd', 'op' => 'MAX', 'value' => 'DateToday'),
|
||||
array( 'var' => 'SituationDateEnd', 'op' => 'MAX', 'value' => 'DateRef'),
|
||||
array( 'var' => 'Situation', 'op' => 'SET', 'value' => ''),
|
||||
),
|
||||
),
|
||||
@ -195,7 +195,7 @@ return array(
|
||||
1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1311,1312,1313,
|
||||
1500,1501,1502,1503,1504
|
||||
)),
|
||||
array( 'var' => 'BilanCloture', 'op' => 'MIN', 'value' => 'DateToday'),
|
||||
array( 'var' => 'BilanCloture', 'op' => 'MIN', 'value' => 'DateRef'),
|
||||
array( 'var' => 'Situation', 'op' => 'SET', 'value' => ''),
|
||||
),
|
||||
),
|
||||
@ -213,7 +213,7 @@ return array(
|
||||
array( 'var' => 'Even', 'op' => 'EGAL', 'value' => array(
|
||||
1502,1503
|
||||
)),
|
||||
array( 'var' => 'BilanCloture', 'op' => 'MIN', 'value' => 'DateToday'),
|
||||
array( 'var' => 'BilanCloture', 'op' => 'MIN', 'value' => 'DateRef'),
|
||||
array( 'var' => 'Situation', 'op' => 'SET', 'value' => 'CL'),
|
||||
),
|
||||
),
|
||||
@ -287,7 +287,7 @@ return array(
|
||||
'value' => 'CONTINUE',
|
||||
'params' => array(
|
||||
array( 'var' => 'Situation', 'op' => 'EGAL', 'value' => ''),
|
||||
array( 'var' => 'GreffeRadiationDate', 'op' => 'MIN', 'value' => 0),
|
||||
array( 'var' => 'GreffeRadiationDate', 'op' => 'MIN', 'value' => 'EvenDateJugement'),
|
||||
array( 'var' => 'Situation', 'op' => 'SET', 'value' => 'RR'),
|
||||
),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user