Commit Graph

126677 Commits

Author SHA1 Message Date
Laurent Destailleur
70e475d0ce Fix warnings 2023-10-24 15:40:36 +02:00
Laurent Destailleur
ab775998d1 Add code comment 2023-10-24 14:22:06 +02:00
Florian Mortgat
ac5c9d051f NEW: hidden conf to disable use of dns_get_record (which can become unresponsive) (#26339) 2023-10-24 13:14:39 +02:00
Benjamin Neumann
f7d77cbd7d NEW Generic doc template for donations (#26338)
* NEW Generic doc template for donations

Can be used to create written acknowledgments to substantiate a charitable
contribution in the United States, but it is not specific to the United
States.

Multi-lingual.

If the global setting DONATION_NOTE_PUBLIC is greater than 0, the public
note for the donation is also included. This can be used in the United
States to notate if a donation is not entirely deductible.

* FIX Style errors.

* FIX A new typo
2023-10-24 13:13:40 +02:00
Lucas Marcouiller
2dc5419145 Fix #26337 updateline fatal error on updateline (#26341)
Co-authored-by: Hystepik <lucas.marcouiller@gmail.com>
2023-10-24 13:12:59 +02:00
Laurent Destailleur
a318031034 QUAL Standardize code. Renamed ID of user properties into ->user_xxx_id 2023-10-24 11:37:29 +02:00
Laurent Destailleur
87b29bcd28 Doc 2023-10-24 03:45:21 +02:00
Laurent Destailleur
96a90cf552 Add test file 2023-10-24 03:25:50 +02:00
Laurent Destailleur
1950669a24 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2023-10-24 03:23:37 +02:00
Laurent Destailleur
1734adfd27 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-10-24 03:05:46 +02:00
Laurent Destailleur
e61b271ee6 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2023-10-24 02:31:00 +02:00
Laurent Destailleur
27966b0466 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2023-10-24 02:29:44 +02:00
Laurent Destailleur
5ea2bdf3b9 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-10-24 02:26:36 +02:00
Laurent Destailleur
5e31c43ceb Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2023-10-24 02:16:33 +02:00
Laurent Destailleur
3b5756ee35 Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0 2023-10-24 02:03:02 +02:00
Laurent Destailleur
a875e77267 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2023-10-24 02:02:49 +02:00
Laurent Destailleur
9001a1d799 Fix regression generating false warning in translation page 2023-10-24 02:02:23 +02:00
Laurent Destailleur
674ff5999c Trans 2023-10-24 01:36:44 +02:00
Laurent Destailleur
1d1a1c88f6 NEW Date format dayhoursec is using year on 2 char on smartphones 2023-10-24 01:13:43 +02:00
Anthony Berton
2c01a59e60 FIX - param in order list det (#26298)
* FIX - param in order list det

* Clean

* $newcardbutton

---------

Co-authored-by: Anthony Berton <anthony.berton@bb2a.fr>
2023-10-23 21:48:43 +02:00
Lucas Marcouiller
64f54a4e5a Fix #26009 job positions deactivated (#26300)
Co-authored-by: Hystepik <lucas.marcouiller@gmail.com>
2023-10-23 21:47:38 +02:00
Alexandre SPANGARO
8da9a5e4bc PHP 8.1 #26307 - Fix warning (#26313) 2023-10-23 19:21:54 +02:00
Rahul
a5545e83df doc(README): remove typo (#26315)
## Description:

This Pull Request fixes a typographical error in the README.md file.


## Changes Made:

 - Corrected "recommanded" to "recommended" and "Receiption" to "Reception" in the README.md file.

## Additional Information:

This fix is not related to any existing issue. It's a minor typo that I noticed while reviewing the README.

Thank you for considering this contribution.
2023-10-23 19:21:15 +02:00
MDW
acea5c17dd each is deprecated in PHP7.2 and removed in PHP8.0 (#26317)
See https://www.php.net/manual/en/function.each.php
2023-10-23 19:20:55 +02:00
PriteshJadhav132
ef1ccdf6b1 remove typo (#26316) 2023-10-23 19:19:36 +02:00
MDW
e036e32caa qual Annotation/initialisation fixes (#26318) 2023-10-23 19:19:10 +02:00
sonikf
19012cad47 fix typo (#26321) 2023-10-23 19:17:34 +02:00
sonikf
99ee3523b0 fix errors in /fourn/facture/list.php (#26324) 2023-10-23 19:16:59 +02:00
Alexandre SPANGARO
ce28ab6b35 NEW #26312 Manage intermediate BIC - SQL Part (#26325) 2023-10-23 19:13:02 +02:00
Laurent Destailleur
3efb83eac3 Revert "FIX Max version of PHP (#26327)" (#26336)
This reverts commit a554037eb9.
2023-10-23 19:03:23 +02:00
Alexandre SPANGARO
a554037eb9 FIX Max version of PHP (#26327) 2023-10-23 19:01:25 +02:00
William Mead
e9fda9653d New perf & qual sections for PR template (#26328)
* NEW performance & code quality enhancements template sections

* Reordered commit keyword categories to match pull request template

* Adjusted instructions

---------

Co-authored-by: William Mead <william.mead@manchenumerique.fr>
2023-10-23 19:00:03 +02:00
William Mead
08f17dab0b Qual logevents action switch (#26330)
* QUAL use switch case instead of if elseif statements for actions

* Deleted unnecessary action comments

* Added default case

* Added contributor details

---------

Co-authored-by: William Mead <william.mead@manchenumerique.fr>
2023-10-23 18:58:57 +02:00
Laurent Destailleur
551e3f5994 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2023-10-23 18:54:36 +02:00
Laurent Destailleur
b7de0baedd Fix phpunit 2023-10-23 18:54:16 +02:00
am97
ee3bd43473 FIX user creation when LDAP is configured (#26332) 2023-10-23 18:39:22 +02:00
gdsoftdev
2d303b7c95 fix account code binding for supplier invoice (#26333) 2023-10-23 18:30:27 +02:00
atm-gauthier
f46482a72a NEW Can switch product batch management to no management. (#21691)
* NEW : When an user unset the batch management of products, transformation of each batch stock mouvement in global stock mouvement

* FIX : Alert on deserialize product

* FIX : Correction of the trad

* Fixing style errors.

* FIX : PR returns

* FIX : using llx_product_batch table

* FIX : langs

* Fixing style errors.

* FIX : $value must be an absolute value

* FIX : init $inventorycode before while loop

* Fixing style errors.

* FIX : "Yes (unique serial number required)" choice must not be available on product edit if its current status batch is "Yes (lot required)"

* Fixing style errors.

* FIX : Just display a message when we change from batch to serial

* Fixing style errors.

* Update card.php

* Update card.php

* Update product.class.php

* Update product.class.php

---------

Co-authored-by: Adrien Raze <adrien.raze@atm-consulting.fr>
Co-authored-by: stickler-ci <support@stickler-ci.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-23 18:05:21 +02:00
Laurent Destailleur
5d6cf7cd51 dolPrintHTMLForAttribute remove \n 2023-10-23 13:15:01 +02:00
Laurent Destailleur
d8d3faa50f dolPrintHTMLForAttribute remove \n 2023-10-23 13:14:59 +02:00
Laurent Destailleur
0b11668660 FIX better management of <br> for dolGetFirstLine 2023-10-23 12:26:23 +02:00
Laurent Destailleur
f2e29d12de Fix travis 2023-10-21 18:11:07 +02:00
Laurent Destailleur
326bd356f5 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2023-10-21 18:03:40 +02:00
Laurent Destailleur
53adeb9be2 Try to fix travis 2023-10-21 18:01:32 +02:00
Laurent Destailleur
9275684ed1 Clean code 2023-10-21 17:58:31 +02:00
Alexandre SPANGARO
e6986446cb NEW #22531 Expense report - Add two fields into export : Qty & Unit price (excl.) (#26309) 2023-10-21 16:29:37 +02:00
Alexandre Janniaux
9fe9eee18a FIX|Fix some minor issues on Reception and add a new test for it (#26310)
* reception: reOpen: mirror $this->statut in $this->status

$this->statut is the deprecated variable, $this->status should also get
the correct value.

* reception: setDraft: mirror $this->statut in $this->status

$this->statut is the deprecated variable, $this->status should also get
the correct value.

* reception: add missing $weight field

Fix warning:

    Undefined property: Reception::$weight

* societe: add country_id field

* reception: use getDolGlobalInt when suitable

Using empty() implies that the value actually exists on the stdClass at
$conf->global, but it's not always the case. getDolGlobalInt will handle
this smoothly by checking first, which solves warnings like those:

    Undefined property: stdClass::$STOCK_CALCULATE_ON_RECEPTION

* ReceptionTest: add new test

The test checks the usual workflow of the Reception class, with, on the
one hand, the common CRUD operations:
 - create
 - fetch
 - update
 - delete

And on the other hand, the status handling for Reception:
 - valid: STATUS_DRAFT -> STATUS_VALID
 - setClosed: STATUS_VALID -> STATUS_CLOSED
 - reOpen: STATUS_CLOSED -> STATUS_VALID
 - setDraft: STATUS_VALID -> STATUS_DRAFT

The stocks lines are not tested yet, and the error cases, like any other
transition not described above, are not tested either. The permissions
for some of the operations are hardcoded for the test and there is no
failure check when the permission is not set yet.
2023-10-21 16:28:30 +02:00
MDW
24f8488b48 QUAL Force subclass MINVERSION (#26314)
* Define DoliDB::VERSIONMIN as mandatory constant in subclass

See https://stackoverflow.com/a/43134924/6378634

This also helps static tool checks

* fixup! Define DoliDB::VERSIONMIN as mandatory constant in subclass
2023-10-21 16:27:52 +02:00
Laurent Destailleur
25ace1d042 Debug v19 2023-10-21 16:23:58 +02:00
Laurent Destailleur
4b214b4100 Fix #yogosha18281 2023-10-21 02:39:27 +02:00