Merge branch 'import-salaries-DPE' into 'develop'
add DPE service for salaries imports See merge request service-web-lab/boutique-cnc-sable!14
This commit is contained in:
commit
fc71244b87
2 changed files with 6 additions and 0 deletions
|
|
@ -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',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue