Commit Graph

612 Commits

Author SHA1 Message Date
Laurent Destailleur
e040219fdc Fix phpcs 2023-12-13 12:45:07 +01:00
Laurent Destailleur
552e745908 Debug v19 2023-11-28 10:33:06 +01:00
Laurent Destailleur
075ee02901 Fix php8.2 warnings 2023-11-27 12:08:48 +01:00
sonikf
22e5ef6e18 fix fetch vat details not working for some use cases (#26771)
* fix not working for some use cases

* fix not working for some use cases

* use DOL_URL_ROOT

* fix travis

* Fix missing address
2023-11-23 17:47:17 +01:00
Laurent Destailleur
40898cac50 Close #26790 2023-11-21 23:05:40 +01:00
Christophe Battarel
455c061172 add hook tabContentEditThirdparty (#26487)
Co-authored-by: Christophe Battarel <christophe@altairis.fr>
2023-11-07 17:59:44 +01:00
Christophe Battarel
221f497e0f add hook tabContentViewThirdparty (#26488)
Co-authored-by: Christophe Battarel <christophe@altairis.fr>
2023-11-07 17:59:05 +01:00
Christophe Battarel
57d6aee0d9 add hook tabContentCreateThirdparty (#26489)
Co-authored-by: Christophe Battarel <christophe@altairis.fr>
2023-11-07 17:58:52 +01:00
Laurent Destailleur
494908f1d2 Fix when using non standard action and canvas 2023-10-31 17:53:35 +01:00
Alexandre Janniaux
c3b3840f08 QUAL Refactor merging companies and fix #26272 with Reception objects (#26320)
* societe: add missing model_pdf field

The field is used by the class but wasn't declared.

* societe: expose Societe::mergeCompany

The code is directly copied from societe/card.php with as less changes
as possible.

The original code came from deb91ad7c1.

* societe: remove fields from property copy

$phone_pro and $fk_project are not existing for societe. This was added
from deb91ad7c1.

* SocieteTest: test the merge functionality

This test is a simple smoke test to check that the mergeCompany() will
work correctly on simple case and actually merge the details of the
company.

More complex deduplication pattern with objects referencing the deleted
Societe object, will be written for each of the different object class
in their respective test file.

* societe: card: use the new mergeCompany function

Since the code is almost the same, there should be no differences in
behaviour right now.

* societe: api_thirdparties: use Societe::mergeCompany()

* societe: fix issue when merging companies

When a Societe object is merged against another, its related objects are
supposed to reference the new Societe object so that the databse doesn't
raise foreign key errors.

The list references the objects that need to be transformed, and
Reception objects weren't part of this list.

Fix #26272

* ReceptionTest: check company merge hook

Before a Societe object is destroyed from the database, every object
referencing the FK should be destroyed or should reference another
object.

In the case of two companies being merged, the case arises and Reception
objects need to be moved to the new company. This commit brings a
non-regression test for this case.

Refs #26272

* Update societe.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-26 16:30:38 +02:00
Laurent Destailleur
455fb4417a Look and feel v19 2023-10-20 12:57:58 +02:00
Mohamed DAOUD
5b28ed0f4f Replacing yes/no by checkboxes on thirdparty views (#26236)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-17 16:46:02 +02:00
Laurent Destailleur
b8c8e903c2 Fix php8.2 warnings 2023-10-15 18:39:13 +02:00
Laurent Destailleur
c32fe8dc5f QUAL: Use dol_clone with parameter 2 for ->oldcopy 2023-10-11 19:10:24 +02:00
Laurent Destailleur
aea0083abc Better fix for #26124 2023-10-11 12:04:09 +02:00
Laurent Destailleur
39b6b34820 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2023-10-09 09:36:30 +02:00
Laurent Destailleur
ffbb05167a Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-10-09 09:28:51 +02:00
Dev2a
b76c402a09 Fix: Change access to $conf->global to function getDolGlobal (manual) 2023-10-08 23:25:46 +02:00
Dev2a
fcd4c4e429 Fix: Change access to $conf->global to function getDolGlobal (automatique) 2023-10-08 23:19:49 +02:00
Laurent Destailleur
0a46de7d81 Fix warning 2023-10-08 12:51:46 +02:00
sonikf
da92e4be32 fix remove unnecessary exposed service paramaters 2023-09-27 09:52:34 +03:00
sonikf
40238a5105 fix Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data 2023-09-22 14:32:59 +03:00
sonikf
9199bce9da Add test on !empty($u) 2023-09-22 12:56:40 +03:00
sonikf
ceaefa5b09 FIX use getDolGlobalString() 2023-09-13 12:29:22 +03:00
sonikf
fc26731025 fix CI errors 2023-09-12 21:27:22 +03:00
sonikf
e7d8f04187 fix ci errors 2023-09-12 21:04:32 +03:00
sonikf
ee09db0e55 Retrieve vat details from the Greek Ministry of Finance GSIS SOAP web service and autocomplete third party fields 2023-09-12 00:44:22 +03:00
Laurent Destailleur
6b94d60d9a Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-06-16 01:36:46 +02:00
Laurent Destailleur
00431c1ece Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-06-16 01:09:56 +02:00
Laurent Destailleur
886eaa9117 Fix error management and better merging behaviour 2023-06-15 12:48:12 +02:00
Frédéric France
eaad829b6f use user hasRight 2023-06-12 20:31:34 +02:00
Alexandre SPANGARO
0aaf7988b1 FIX #24985 Societe - Function thirdparty merging not working with module whose tables are not deployed by default 2023-06-08 21:20:26 +02:00
Frédéric France
fd4c24e000 use user hasRight 2023-06-05 23:49:13 +02:00
Laurent Destailleur
ebfe632efe Debug v18 2023-06-03 15:33:46 +02:00
Laurent Destailleur
e2ec34e1e5 Clean code 2023-05-01 14:33:08 +02:00
Laurent Destailleur
3065b9ca6a Clean code 2023-04-27 21:15:27 +02:00
Laurent Destailleur
9a420b8f41 Clean code 2023-04-18 16:15:27 +02:00
Alexandre SPANGARO
b29eba6e00 NEW: Accountancy - Manage intra-community VAT on supplier invoices - FPC22 2023-04-06 08:47:28 +02:00
Laurent Destailleur
758c6a6263 colspan war 2023-03-29 17:06:19 +02:00
Laurent Destailleur
9ccc806f3a select_dolusers can return rich array of users 2023-03-27 13:02:42 +02:00
Laurent Destailleur
b0cf8cd72d Clean code 2023-02-21 13:19:57 +01:00
Laurent Destailleur
2168578f2e Fix inline css 2023-02-18 14:00:25 +01:00
Laurent Destailleur
f054dabbdf NEW expend/collapse list of social networks 2023-01-20 13:51:07 +01:00
stickler-ci
cc691383f2 Fixing style errors. 2023-01-17 11:50:35 +00:00
marc
698306e8a6 Add return in doc comment 2023-01-17 12:50:06 +01:00
marc
8909d7ba9c Add doc comment 2023-01-17 12:44:58 +01:00
stickler-ci
b2df3e47f8 Fixing style errors. 2023-01-16 17:09:34 +00:00
marc
931ce8be4a NEW #23436 Group social networks field
Group social networks field on a thirdparty creation into one link
2023-01-16 18:06:23 +01:00
ptibogxiv
590334300d Fix php 8 error 2023-01-08 15:27:11 +01:00
Laurent Destailleur
0db5c98941 Clean code 2022-12-30 18:46:36 +01:00