2
0
forked from Wavyzz/dolibarr
Commit Graph

126919 Commits

Author SHA1 Message Date
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
Laurent Destailleur
62c1baaa61 Clean param 2023-10-20 21:01:59 +02:00
Laurent Destailleur
777c6bffa5 Debug v19 2023-10-20 20:33:19 +02:00
Laurent Destailleur
11486c8d32 doc 2023-10-20 18:04:07 +02:00
Laurent Destailleur
b23dc8478c php 8.2 2023-10-20 17:46:26 +02:00
Laurent Destailleur
fad21985da Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2023-10-20 16:36:53 +02:00
Laurent Destailleur
cad186aed5 css 2023-10-20 16:36:28 +02:00
William Mead
a4dd36d967 NEW resource improvements - data structure (#26285)
* NEW improved resource data structure

* Added data structure v18-v19 migration

* Added null as default

* Revert "Added null as default"

This reverts commit c17d144800.

* Added null as default

* Added contributor details

* Renamed user_places to max_users

* Update llx_resource.sql

---------

Co-authored-by: William Mead <william.mead@manchenumerique.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-20 14:59:04 +02:00
Laurent Destailleur
ece2d0267f Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2023-10-20 14:57:25 +02:00
mc2contributor
60fa585a7f CLOSE #23331 Add support for parent projects (#24856) 2023-10-20 14:33:39 +02:00
V-Py
9361b1269b FIX #25143 Using default_values for extrafields by replacing GETPOSTISSET by GETPOST (#25233)
* FIX #25143 Using default_values for extrafields

* Update extrafields.class.php

correct the indentation error
2023-10-20 14:28:52 +02:00