Commit Graph

1539 Commits

Author SHA1 Message Date
Laurent Destailleur
68db1800e7
Merge pull request #33094 from iLLixM/develop
New: Option to set Third Party Customer Code equal to Member Reference
2025-02-17 19:46:19 +01:00
MDW
5035580e56
Qual: Fix phan notices (societe) 2025-02-17 09:44:12 +01:00
iLLixM
92a8fcccfe New: Option to set Third Party Customer Code equal to Member Reference
when using the function of creating third parties from members, you are able to set the customer code equal to the existing member reference by setting the parameter THIRDPARTY_CUSTOMERCODE_EQUALS_MEMBERREF
2025-02-16 18:54:51 +01:00
Laurent Destailleur (aka Eldy)
d7205f3404 Fix: The translation should be a step done the later as possible when we
need to exploit or output a translated data. Must not be done at each
call to load meta information.
2025-02-14 02:14:19 +01:00
Laurent Destailleur (aka Eldy)
eeb8907f33 Fix missing properties 2025-02-14 02:09:59 +01:00
Regis Houssin
c326d6c84f Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into fix_dev_add_mysoc_currency 2025-02-13 06:18:27 +01:00
Laurent Destailleur
ab83124738
Merge branch 'develop' into 20.0-discount 2025-02-07 14:40:02 +01:00
Laurent Destailleur (aka Eldy)
e57e185ef1 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-02-07 14:39:37 +01:00
Laurent Destailleur (aka Eldy)
baa6a7928e Fix type 2025-02-07 14:38:28 +01:00
Laurent Destailleur (aka Eldy)
6d5dfe2c1d Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-02-05 13:52:56 +01:00
Laurent Destailleur (aka Eldy)
932b34e76e Debug v21 2025-02-05 12:55:10 +01:00
Laurent Destailleur
737ec141c1
Merge branch 'develop' into 20.0-discount 2025-02-05 03:02:47 +01:00
Laurent Destailleur (aka Eldy)
732f97d73c Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-02-05 00:40:06 +01:00
Laurent Destailleur
a02b7e0549
Merge branch 'develop' into 20.0-discount 2025-02-05 00:16:14 +01:00
MDW
f66e9553d5
Qual: Fix phan notices
# Qual: Fix phan notices

Fix phan notices in fourn/commande (+form class)
2025-02-03 16:05:55 +01:00
Laurent Destailleur
dc069b8439
Update societe.class.php 2025-02-02 02:07:56 +01:00
Regis Houssin
6277c76e17 FIX avoid warning if NOREQUIRETRAN is defined 2025-02-01 18:44:12 +01:00
Regis Houssin
a16bc363c7 QUAL add $mysoc->currency and call default lang before setMysoc() 2025-02-01 17:40:51 +01:00
Pratush Raj
7260476397 Bug Fix: #32206 2025-01-30 15:14:07 +05:30
Laurent Destailleur (aka Eldy)
fbe4ccd0e2 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-24 15:25:51 +01:00
Laurent Destailleur (aka Eldy)
132b4f95fe Fix move of files after a merge of products 2025-01-23 20:21:23 +01:00
Laurent Destailleur
87333363d4
Merge pull request #32622 from atm-maxime/new_detect_country_code2
NEW : auto-detect country from code in creation	(follow-up⁾
2025-01-21 08:33:16 +01:00
Laurent Destailleur (aka Eldy)
f11d701486 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-19 15:02:20 +01:00
Laurent Destailleur (aka Eldy)
cd4e5c8998 Debug v21 2025-01-17 15:24:21 +01:00
MDW
7c31549f71
FIX societe.class.php uses getCountry, provided by company.lib
# FIX Societe.class.php uses getCountry, provided by company.lib

Include company.lib.php in societe.class.php.
The SocieteTest.php test failed when run independently on windows.
2025-01-16 17:32:04 +01:00
Laurent Destailleur (aka Eldy)
16b28e4d16 Debug v21 2025-01-15 21:19:18 +01:00
Laurent Destailleur (aka Eldy)
cf62921762 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-15 13:01:03 +01:00
Laurent Destailleur (aka Eldy)
a5fe192125 FIX country id is not saved when we provide country_code only 2025-01-13 13:31:38 +01:00
Maxime Kohlhaas
ba2dab2a44 NEW : auto-detect country from code in creation (follow-up⁾ 2025-01-10 16:56:14 +01:00
Laurent Destailleur (aka Eldy)
b024b95948 Fix typo 2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
56710ce9b7 FIX CVE-2024-55227 and CVE-2024-55228 CSRF when
MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY is
on (hidden option not on by default)
2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
de321e8f01 Fix typo 2025-01-09 02:01:49 +01:00
Laurent Destailleur (aka Eldy)
c0250e4c91 FIX CVE-2024-55227 CSRF when MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY is
on (hidden option not on by default)
2025-01-08 17:41:45 +01:00
Laurent Destailleur
458579342a
Merge pull request #32210 from atm-maxime/detect_country_code
NEW : auto-detect country from code in creation
2024-12-05 16:28:33 +01:00
MDW
ec2a1928ba
Qual: Update fields phpdoc to include fields that are defined/used in some cases
# Qual: Update fields phpdoc to include fields that are defined/used in some cases

comment, copytoclipboard, autofocusoncreated are documented and used in some cases for the
$fields definition
2024-12-05 02:36:50 +01:00
Maxime Kohlhaas
c6e3ac592b Fix phpstan error 2024-12-04 15:12:38 +01:00
Maxime Kohlhaas
13bf82d9cd NEW : auto-detect country from code in creation 2024-12-03 11:31:04 +01:00
Frédéric FRANCE
13b8f5feff
keep only commonobject property oldcopy (#32123)
* clean properties

* clean properties

* clean properties

* clean properties

* clean phpcs

* clean phan

* clean code

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-27 21:59:41 +01:00
Laurent Destailleur
63ac936652 Fix add an order to have same behavior in using stripe customer account
event if data are corrupted with duplicate record.
2024-11-25 14:46:22 +01:00
Laurent Destailleur
627f81acd5 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-11-24 14:01:36 +01:00
Frédéric FRANCE
75400611e1
fix phpstan (#32040)
* fix phpstan

* fix

* fix

* fix

* fix

* fix

* fix
2024-11-21 22:36:00 +01:00
Frédéric FRANCE
57d121664f
set object entity at create (#32019)
* set object entity at create

* set object entity at create

* set object entity at create

* set object entity at create

* set object entity at create

* set object entity at create

* do not break multicompany thing

* do not break multicompany thing

* missing translation

* fix phpstan

* doc

* fix entity

* fix set entity
2024-11-21 19:11:32 +01:00
Laurent Destailleur
b1e3830c3b Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-11-13 00:38:58 +01:00
Laurent Destailleur
a186903844 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-11-13 00:38:00 +01:00
Laurent Destailleur
4cd2e572ae Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-11-13 00:30:26 +01:00
uvaldenaire-opendsi
0eee1ad18b
Qual: remove php 8.2 warnings by casting trim() argument to string. (#28162) (#31693)
In create and update methods of societe class, the trim function triggered warnings when the argument passed is null.
Cast string properties to string to avoid php warnings when the property is null.

Co-authored-by: UltraViolet33 <93035200+UltraViolet33@users.noreply.github.com>
2024-11-12 19:45:52 +01:00
atm-lena
10e18da5d7
Develop new facture rec field societe rib management (#31698)
* Add field "fk_societe_rib" in llx_facture_rec

* Add field fk_societe_rib FactureRec

* Management of new field "Bank Account Customer" in facture rec

* Empty Value Management

* Change method of hide/show field

* Preselect RIB

* Rename function

* Edit structure formiban

* fix merge conflict

* Clean code

* clean code

* change translations

* default rib preselected in invoice rec create

* fix "=="

* Update card-rec.php

---------

Co-authored-by: atm-lena <lena.papazian@atm-consulting.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-11 17:53:35 +01:00
Laurent Destailleur
a3cd50944d Fix missing property 2024-11-07 03:25:04 +01:00
Laurent Destailleur
4d9283d8ab Clean code 2024-11-04 16:41:50 +01:00
omogenot
9e40176056
NEW: INTRA VAT ID field optionally mandatory and/or invoice mandatory in thirdparty module setup (#31663)
* Update societe.php

* Add VAT mandatory and VAT invoice mandatory setup
* Reuse `setprofid`, `setprofidmandatory` and `setprofidinvoicemandatory` functions to update constants by using same mechanism with $key='VAT_INTRA'

* Update societe.class.php

Add VAT value check is company uses VAT and VAT is mandatory

* Update facture.class.php

Add VAT invoice mandatory checking

* Update facture.class.php

Typo

* Update societe.php

Fix comment
2024-11-04 13:02:25 +01:00