Skip to content

Commit

Permalink
Evarisk#4026 [Mod] add: change labour doctor default name
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-francois committed Jul 15, 2024
1 parent 6ec532f commit 0ee06f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/modules/modDigiriskDolibarr.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2205,6 +2205,14 @@ public function init($options = '')

dolibarr_set_const($this->db, 'DIGIRISKDOLIBARR_THIRDPARTY_UPDATED', 2, 'integer', 0, '', $conf->entity);
}
if ( $conf->global->DIGIRISKDOLIBARR_THIRDPARTY_UPDATED == 2 ) {
$labourDoctorID = $resources->fetchDigiriskResource('LabourDoctorSociety');
$societe->fetch($labourDoctorID);
$societe->name = $langs->trans('LabourDoctorNameFull') . ' - ' . $conf->global->MAIN_INFO_SOCIETE_NOM;
$societe->update(0, $user);

dolibarr_set_const($this->db, 'DIGIRISKDOLIBARR_THIRDPARTY_SET', 3, 'integer', 0, '', $conf->entity);
}

// Create extrafields during init
include_once DOL_DOCUMENT_ROOT . '/core/class/extrafields.class.php';
Expand Down
1 change: 1 addition & 0 deletions langs/fr_FR/digiriskdolibarr.lang
Original file line number Diff line number Diff line change
Expand Up @@ -1494,3 +1494,4 @@ ManuelInputNBEmployeesDescription = Si l'option est activée, vous pouvez sais
ManuelInputNBWorkedHours = Saisir manuellement le nombre d'heures travaillées
ManuelInputNBWorkedHoursDescription = Si l'option est activée, vous pouvez saisir manuellement le nombre d'heures travaillées dans la configuration de la société.<br>Sinon le nombre d'heures travaillées est calculé.<br>Consulter la documentation pour plus d'informations.
HowToConfigureSetupConf = Pour configurer les donnés de la société lié à Digirisk,<br>veuillez vous rendre sur Digirisk - Configuration - Réglages
LabourDoctorNameFull = Association des Médecins

0 comments on commit 0ee06f1

Please sign in to comment.