|
|
@@ -101,7 +101,10 @@ class OrganizationFactory
|
|
|
$this->entityManager->flush();
|
|
|
|
|
|
// Création de la société Dolibarr
|
|
|
- $dolibarrId = $this->dolibarrApiService->createSociety($organization);
|
|
|
+ $dolibarrId = $this->dolibarrApiService->createSociety(
|
|
|
+ $organization,
|
|
|
+ $organizationCreationRequest->isClient()
|
|
|
+ );
|
|
|
$this->logger->info("New dolibarr structure created (uid : " . $dolibarrId . ")");
|
|
|
|
|
|
$this->entityManager->commit();
|
|
|
@@ -250,7 +253,6 @@ class OrganizationFactory
|
|
|
return $organization;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* Créé une nouvelle instance d'organisation
|
|
|
*
|
|
|
@@ -332,6 +334,7 @@ class OrganizationFactory
|
|
|
* @param OrganizationCreationRequest $organizationCreationRequest The OrganizationCreationRequest object containing the required data.
|
|
|
*
|
|
|
* @return ContactPoint The newly created instance of the ContactPoint class.
|
|
|
+ * @throws NumberParseException
|
|
|
*/
|
|
|
protected function makeContactPoint(OrganizationCreationRequest $organizationCreationRequest): ContactPoint
|
|
|
{
|