add DPE service for salaries imports

This commit is contained in:
Olivier Legat 2023-02-14 11:38:46 +01:00
parent d56c0adea5
commit 5fb5a99a0f
No known key found for this signature in database
GPG key ID: E6DCE8D1E33A5803
2 changed files with 6 additions and 0 deletions

View file

@ -17,6 +17,7 @@ use Kwaadpepper\Enum\BaseEnumRoutable;
* @method static self ldchol()
* @method static self cepacpe()
* @method static self dde()
* @method static self dpe()
*
*/
class SalarieSite extends BaseEnumRoutable
@ -38,6 +39,7 @@ class SalarieSite extends BaseEnumRoutable
'ldchol' => 'LDCHOL',
'cepacpe' => 'CEPACP',
'dde' => 'DDE',
'dpe' => 'DPE',
];
}
@ -58,6 +60,7 @@ class SalarieSite extends BaseEnumRoutable
'ldchol' => 'LDC Holding',
'cepacpe' => 'CPE-CEPA',
'dde' => 'Unité Dinde',
'dpe' => 'DPE',
];
}
}

View file

@ -173,6 +173,9 @@ class CsvSalariesReader extends CsvJobs
} elseif ($salarie->site == SalarieSite::dde()) {
// Dinde.
$magasin = Magasin::find(8);
} elseif ($salarie->site == SalarieSite::dpe()) {
// DPE.
$magasin = Magasin::find(9);
} elseif ($salarie->site == SalarieSite::cepacpe()) {
if (
$salarie->service == "CEPACP060"