|
|
@@ -32,12 +32,6 @@ use libphonenumber\PhoneNumberFormat;
|
|
|
use libphonenumber\PhoneNumberUtil;
|
|
|
use Psr\Log\LoggerInterface;
|
|
|
use Symfony\Component\HttpKernel\Exception\HttpException;
|
|
|
-use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;
|
|
|
-use Symfony\Contracts\HttpClient\Exception\DecodingExceptionInterface;
|
|
|
-use Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface;
|
|
|
-use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface;
|
|
|
-use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
|
|
|
-use Symfony\Contracts\HttpClient\ResponseInterface;
|
|
|
use Symfony\Contracts\Service\Attribute\Required;
|
|
|
use Symfony\Contracts\Translation\TranslatorInterface;
|
|
|
|
|
|
@@ -329,9 +323,9 @@ class DolibarrSyncService
|
|
|
// Update Billing service contact (if existing)
|
|
|
foreach ($dolibarrSocietyContacts as $contactData) {
|
|
|
if (
|
|
|
- strtolower($contactData['lastname']) === 'service facturation' &&
|
|
|
- empty($contactData['name']) &&
|
|
|
- empty($contactData['array_options']['options_2iopen_person_id'])
|
|
|
+ 'service facturation' === strtolower($contactData['lastname'])
|
|
|
+ && empty($contactData['name'])
|
|
|
+ && empty($contactData['array_options']['options_2iopen_person_id'])
|
|
|
) {
|
|
|
$billingAddress = $this->getOrganizationBillingPostalAddress($organization);
|
|
|
$newContactData = $contactData;
|