2
0
forked from Wavyzz/dolibarr
Commit Graph

241 Commits

Author SHA1 Message Date
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
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
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
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
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
pascal
80f060c771 fix tab indentation 2023-09-26 18:43:25 +02:00
pascal
871f896962 implementation of properties filter 2023-09-26 18:04:48 +02:00
Laurent Destailleur
924da777bf Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-09-04 23:26:35 +02:00
Laurent Destailleur
b6b1d8acbc Fix error message 2023-09-03 22:34:14 +02:00
Laurent Destailleur
3343a47244 NEW billing on shipment+reception. Can be done before or after delivery. 2023-09-03 21:38:11 +02:00
Frédéric FRANCE
eaf63b60c5 phpstan 2023-09-01 14:54:35 +02:00
Laurent Destailleur
552a079379 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-08-27 16:05:46 +02:00
Laurent Destailleur
45d323a6f8 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2023-08-27 16:02:57 +02:00
Laurent Destailleur
cd960d30df Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-08-27 16:01:05 +02:00
Laurent Destailleur
5c03db3b05 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2023-08-27 15:58:48 +02:00
Laurent Destailleur
3b6b9661fa Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0 2023-08-27 15:57:45 +02:00
Frédéric FRANCE
a142d48d26 phpstan 2023-08-27 09:19:58 +02:00
VESSILLER
ebed2211b6 FIX reception odt dir output path 2023-08-23 11:24:09 +02:00
Laurent Destailleur
f21c168a84 Removed $brouillon property 2023-08-06 01:16:12 +02:00
Laurent Destailleur
0076ec69b8 The property ->brouillon has been removed from all classes. It was not
reliable and was a duplicate of ->status == self::STATUS_DRAFT.
2023-08-06 00:16:25 +02:00
Hystepik
17471ff3b7 Fix #25250 : Wrong class name in function 2023-07-04 16:11:42 +02:00
Frédéric FRANCE
e74d8fa54d use isModEnabled 2023-06-29 14:04:39 +02:00
Florian HENRY
a2c0eac09b on going 2023-06-09 11:53:39 +02:00
VMR Global Solutions
926aa6fec7 API add / fix filter on extrafields in index()
Add / change in api_xxx.class.php files the ability to filter on extrafields when missing in the public functions index()
by changing the SQL query with the pattern 
" FROM ".MAIN_DB_PREFIX"xxxx AS t LEFT JOIN ".MAIN_DB_PREFIX."xxxx_extrafields AS ef ON (ef.fk_object = t.rowid)
2023-04-28 09:31:33 +02:00
VMR Global Solutions
7126ff7b1f Update api_receptions.class.php
Change made in _private function validate in reception/class/api_receptions.class.php:709
replaced line 712
foreach (Shipments::$FIELDS as $field) { => foreach (Receptions::$FIELDS as $field) {
2023-04-27 09:16:17 +02:00
Laurent Destailleur
7cf21e6ee6 Debug v18 2023-04-18 14:48:47 +02:00
Laurent Destailleur
a4a014cfd5 Clean libelle into label 2023-04-08 15:08:55 +02:00
Laurent Destailleur
ed5c890769 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-02-25 20:12:48 +01:00
Laurent Destailleur
cbb6ca071a Fix #yogosha15157 2023-02-25 19:51:05 +01:00
Laurent Destailleur
6da47ea49b Fix qodana 2023-02-20 02:33:44 +01:00
Frédéric FRANCE
2cdc440655 doc 2023-02-08 21:57:07 +01:00
FLIO
0080b0a80f fix (qodana) fix condlicts 2023-02-01 23:38:49 +01:00
FLIO
c4521efa57 fix(qodana) fix function comment bad return 2023-01-23 16:31:14 +01:00
Laurent Destailleur
a33603b6ae Doxygen 2023-01-18 23:58:26 +01:00
Laurent Destailleur
8c1ce7873f standardize code 2023-01-12 13:02:04 +01:00
Laurent Destailleur
5c8dc4ed58 Fix warning 2023-01-01 23:50:37 +01:00
Laurent Destailleur
6824f82cc8 Fix warnings 2022-12-28 13:58:23 +01:00
Laurent Destailleur
1fdc8c83e8 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2022-12-14 11:40:14 +01:00
Laurent Destailleur
50c76110bb Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2022-12-14 11:19:12 +01:00
Laurent Destailleur
16fee3f8d8 Merge pull request #23190 from frederic34/parametersoreder
fix parameters order
2022-12-14 00:24:12 +01:00