Commit Graph

639 Commits

Author SHA1 Message Date
Laurent Destailleur
6c6adc5333
Merge pull request #24911 from Easya-Solutions/new-productlot-make-sell-or-eat-by-mandatory2
NEW make sell or eat by mandatory in product lot
2024-01-22 15:21:34 +01:00
Frédéric France
03e29c6960 fix param 2024-01-20 09:22:38 +01:00
thibdrev
070478c750
qual: phpstan
htdocs/reception/card.php	617	Property CommandeFournisseurDispatch::$id (int) does not accept array|string.
htdocs/reception/card.php	659	Property CommandeFournisseurDispatch::$id (int) does not accept array|string.
htdocs/reception/card.php	660	Property CommandeFournisseurDispatch::$fk_entrepot (int) does not accept array|string.
htdocs/reception/card.php	685	Property CommandeFournisseurDispatch::$id (int) does not accept array|string.
2024-01-19 20:21:20 +01:00
thibdrev
c948d97ecf
fix: phpstan
htdocs/reception/dispatch.php	196	Property CommandeFournisseurDispatch::$fk_entrepot (int) does not accept array|string.
2024-01-18 21:20:26 +01:00
Laurent Destailleur
5d3c775b69 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-01-18 12:19:08 +01:00
Laurent Destailleur
f7485182f7 Fix warning and MAIN_MAIL_AUTOCOPY_... 2024-01-17 19:52:17 +01:00
VESSILLER
1a164eece5 Update from develop 2024-01-15 13:55:26 +01:00
Frédéric FRANCE
37563855fc
fix phpstan (#27497)
* fix phpstan

* Update reception.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-01-14 12:12:21 +01:00
MDW
342ab85195
Qual: Spelling htdocs/[q-z]* (#27447)
# Qual: Fix spelling htdocs/[q-z]*

Probably fixes a bug:

- htdocs/webservices/server_thirdparty.php
  No other occurence of adress found.
  -'adress'=>->adress,- +'address'=>->address,+
2024-01-12 17:18:52 +01:00
Christophe Battarel
5e32970c8d
dont change status displayed if error during stock movement (#27415)
Co-authored-by: Christophe Battarel <christophe@altairis.fr>
2024-01-11 11:24:21 +01:00
Christophe Battarel
e64f0662e1
dont change status if error during stock movement (#27414)
Co-authored-by: Christophe Battarel <christophe@altairis.fr>
2024-01-11 10:16:18 +01:00
Laurent Destailleur
910a541c60 Clean code 2024-01-09 13:08:22 +01:00
Laurent Destailleur
e2f49c407f Clean sql request to use exist instead of left join 2024-01-09 10:44:50 +01:00
Laurent Destailleur
4501872f17 Clean code with rector 2 2024-01-05 04:33:58 +01:00
Fabian Heinz
aa43e18d56
API status code fix
apis currently returning 404 if no entry found fixed
2023-12-31 14:05:21 +01:00
Laurent Destailleur
b28ae5d8d3 Clean code 2023-12-27 12:12:20 +01:00
Laurent Destailleur
70c53b4568 Debug v19 2023-12-19 16:24:04 +01:00
Laurent Destailleur
27df30b773 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2023-12-19 16:22:02 +01:00
Laurent Destailleur
1044e5c7d4 Debug v19 2023-12-19 12:33:55 +01:00
Laurent Destailleur
7f5df80efd Debug v19 2023-12-19 11:51:48 +01:00
Laurent Destailleur
d92c65ad91 FIX infinite loop in API call/trigger by adding a caller 2023-12-15 12:15:33 +01:00
Laurent Destailleur
fb083a6cfc Fix warning with rector 2023-12-13 16:33:17 +01:00
Laurent Destailleur
7d109e9419 Fix phpcs 2023-12-13 12:46:23 +01:00
Laurent Destailleur
e040219fdc Fix phpcs 2023-12-13 12:45:07 +01:00
Frédéric FRANCE
61b79fda17 avoid phpstan error with phpdoc 2023-12-06 15:46:39 +01:00
Laurent Destailleur
619155f65e Fix with php-cs-fixer 2023-12-04 13:53:48 +01:00
Laurent Destailleur
3ecfc1b55f Fix css 2023-12-02 20:27:09 +01:00
Frédéric FRANCE
53c8a3acf8
clean phpdoc for phpstan (#26905) 2023-12-01 19:51:32 +01:00
Laurent Destailleur
1d589fd74e Fix warnings 2023-11-27 13:26:44 +01:00
Laurent Destailleur
e8dc651877 Fix php8.2 warnings 2023-11-27 11:56:32 +01:00
moreauftheobald
1e36013e34
fix phpstan reception class (#26729)
* fix PHP STAN error on MO class

* fix PHP STAN error on MO class

* Update mo.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-11-18 23:25:16 +01:00
Laurent Destailleur
e57517d06d Clean code 2023-11-17 11:19:51 +01:00
moreauftheobald
e3ed9946c3
Correction On reception class files "Access to an undefined property" (#26661) 2023-11-17 10:58:25 +01:00
Laurent Destailleur
d9df238ac4 Clean code and prepare database for reception from any source 2023-11-14 17:33:50 +01:00
VESSILLER
eb45e9e5c7 Resolve conflicts 2023-11-07 16:08:11 +01:00
Laurent Destailleur
74e1ec4099 FIX On object validation, ecm index are not updated for uploaded files 2023-10-31 19:28:11 +01:00
Laurent Destailleur
ca3c7f0a37 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2023-10-26 13:52:22 +02:00
Laurent Destailleur
35906c0af6 Fix bad test 2023-10-26 12:43:29 +02:00
thomas-Ngr
00a936bffa
fix #18654 : orders are partially received even if all products have been received (#26358) 2023-10-26 12:42:07 +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
Laurent Destailleur
e1bf377f20 QUAL: Removed deprecated field remise, remise_percent, remise_absolute 2023-10-20 10:47:08 +02:00
Laurent Destailleur
c49a044490 Clean code 2023-10-20 02:35:18 +02:00
Laurent Destailleur
c61e9f47c8 Fix reception 2023-10-18 03:44:07 +02:00
Laurent Destailleur
ec3cc1c376 css 2023-10-18 03:39:22 +02:00
Laurent Destailleur
266b7ac61b Clean code (standardize reception with shipment) 2023-10-14 15:25:52 +02:00
Laurent Destailleur
c32fe8dc5f QUAL: Use dol_clone with parameter 2 for ->oldcopy 2023-10-11 19:10:24 +02:00
Laurent Destailleur
df454003da FIX php8.2 2023-10-09 15:44:57 +02:00
Laurent Destailleur
d3dc6615db Remove deprecated use of ->modelpdf (good is ->model_pdf) 2023-10-02 21:49:08 +02:00
Laurent Destailleur
f5bf4a6ec4 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-09-30 11:54:12 +02:00
Francis Appels
ae3112a828 HAR-132 Fix double closing Reception when classified billed. 2023-09-28 15:41:23 +02:00