Commit graph

133486 commits

Author SHA1 Message Date
MDW
07bdec3c0e
Qual: Enable phpcs cache for travis (#28146)
# Qual: Enable phpcs cache for travis

Enable cache on travis for phpcs.
2024-02-13 09:08:15 +01:00
Jon Bendtsen
82cf5b2de1
Added some date substitution variables (#28148)
New date substitution variables with a name matching what is in the json exported through the API

__DATE_CREATION__
__DATE_MODIFICATION__
__DATE_VALIDATION__
2024-02-13 09:06:09 +01:00
Frédéric FRANCE
0106ce384c
fix phpstan (#28150) 2024-02-13 09:04:20 +01:00
Frédéric FRANCE
3a1e6d2a58
fix phpstan pgsql.class.php (#28152) 2024-02-13 09:03:30 +01:00
Alexandre SPANGARO
3867d1619e
FIX Payment on customer invoice - Remove accountid in url if empty for apply default value (#28156) 2024-02-13 09:03:08 +01:00
MDW
93881d8b2d
Qual: correct/improve typing annotations (#28155)
# Qual: correct/improve typing annotations

Improve typing annotations in date library.
2024-02-13 08:51:46 +01:00
MDW
08abc60a5e
Qual: Improve typing hints (#28158)
# Qual: Improve typing hints

Improve some typing hints (helps phan).
2024-02-13 08:50:57 +01:00
Laurent Destailleur
4bbe126339 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-12 20:08:26 +01:00
Laurent Destailleur
cdff5d7c91 FIX external module can cumulate return of arrays 2024-02-12 20:08:05 +01:00
thibdrev
9e250ae19b
qual: phpstan for htdocs/loan/class/loanschedule.class.php (#28119)
* qual: phpstan for htdocs/loan/class/loanschedule.class.php

htdocs/loan/class/loanschedule.class.php	308	Property LoanSchedule::$num_payment (int) does not accept string.
htdocs/loan/class/loanschedule.class.php	317	Property LoanSchedule::$fk_bank (int) does not accept string.

* $num_payment is a string, not an int
2024-02-12 18:12:54 +01:00
atm-sami
549f10c150
18.0 FIX remove consumed and produced lines for mo clone (#28140)
* add new hook context for mo production card

* remove consumed and produced line when we clone mo
2024-02-12 18:10:48 +01:00
Frédéric FRANCE
49ba2132cd
fix phpstan (#28142) 2024-02-12 17:59:18 +01:00
Eric
280ceef46b
outputlangs must not be a string as default value like others generateDocument functions (#28132) 2024-02-12 17:55:32 +01:00
boudet jean pascal
7e652b9f9f
fix token to link (#28141)
* fix token to link

* pre-commit

---------

Co-authored-by: jpb <jean-pascal.boudet@atm-consulting>
2024-02-12 17:51:09 +01:00
Laurent Destailleur
2b26412541 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-12 16:44:17 +01:00
thibdrev
2ca26b5fe9
qual: phpdoc for classes using $num_payment (and not inheriting it from another class) (#28133)
* phpdoc for classes using $num_payment (and not inheriting it from another class)

* Update loanschedule.class.php

* Update paymentloan.class.php

* Update don.class.php

* Update paymentdonation.class.php

* Update paymentsalary.class.php

* Update paymentsocialcontribution.class.php

* Update paymentvarious.class.php

* Update paiement.class.php

* Update paymentvat.class.php

* Update tva.class.php

* phpcs

* phpcs
2024-02-12 16:44:01 +01:00
Laurent Destailleur
904bc424b4 Fix missing $langs 2024-02-12 16:43:46 +01:00
MDW
540502e578
Correct spelling errors (#28134)
# Correct spelling errors

Correct spelling errors that newly appeared in 19.0 and block ci.
2024-02-12 16:33:03 +01:00
MDW
1527dfc7c1
Qual: Correct spelling errors (#28135)
# Qual: Correct spelling errors

Fix new error in Changelog
2024-02-12 16:32:43 +01:00
Laurent Destailleur
1bfe7acbb5 Fix package for 19.0 2024-02-12 15:05:28 +01:00
Laurent Destailleur
400e831d82 Fix dark mode for TakePOS. Clean log 2024-02-12 13:41:46 +01:00
Laurent Destailleur
c61753f73a Debug v19 2024-02-12 12:44:29 +01:00
Laurent Destailleur
36d9022c7d Changelog 2024-02-12 12:31:55 +01:00
Laurent Destailleur
67272dddd3 Prepare 18.0.4 2024-02-12 12:26:47 +01:00
Laurent Destailleur
52ab3dbba4 Release 17.0.4 2024-02-12 12:20:57 +01:00
Laurent Destailleur
35d841a546 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-12 07:11:00 +01:00
Laurent Destailleur
0920d6e08f Enhance modulebuilder 2024-02-12 07:10:49 +01:00
Laurent Destailleur
7836881a22 Sync transifex 2024-02-12 06:33:42 +01:00
Laurent Destailleur
8143e76e6d Prepare 19.0 2024-02-12 06:17:52 +01:00
Laurent Destailleur
7d731b05e9 Tooltip 2024-02-12 06:08:22 +01:00
Laurent Destailleur
f1c90dcd6b Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-12 05:48:11 +01:00
Laurent Destailleur
d0aa2e71d3 Clean code 2024-02-12 05:48:01 +01:00
DaBootO
870395b69c
CLOSE #27048 add form to globally set "VARIANT_ALLOW_STOCK_MOVEMENT_ON_VARIANT_PARENT" variable (#27049)
This commit adds another option to the variants module to set the global variable "VARIANT_ALLOW_STOCK_MOVEMENT_ON_VARIANT_PARENT".
This variable allows the variant parent product to be used in stock movements.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-12 05:46:50 +01:00
Finta
e89dd3bfaa
NEW: Automatically fill matching extra fields of object on line creation. (#27240)
* Update objectline_create.tpl.php - Auto-fill matching extra fields

This change allows to automatically fill the matching extra fields in a form when adding an object (product/service).

* Change spaces to tabs.
2024-02-12 05:38:51 +01:00
Vincent Maury
e89f93024f
NEW #24031 add option MAIN_GRANDTOTAL_LIST_SHOW to always show grand total to lists (#27247)
* Fix #24031 add - if option seleced - grand total to lists

* Fix #24031 add - if option seleced - grand total to lists

* Fix #24031 add - if option seleced - grand total to lists

* Fix #24031 add - if option selected - grand total to lists

* Update ihm.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-12 05:34:45 +01:00
Laurent Destailleur
200fd95074 NEW All apis has a hook context of "api" initialized 2024-02-12 05:25:45 +01:00
Laurent Destailleur
474064c18a Merge branch 'cashdiscounthooks' of github.com:bloxera/dolibarr into
develop

# Conflicts:
#	htdocs/compta/facture/class/api_invoices.class.php
#	htdocs/compta/facture/list.php
#	htdocs/fourn/class/api_supplier_invoices.class.php
#	htdocs/fourn/facture/list.php
2024-02-12 05:04:33 +01:00
Laurent Destailleur
437bbc9064 Close #27068 2024-02-12 04:21:24 +01:00
Laurent Destailleur
9a1afee6d2 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-12 03:36:46 +01:00
Laurent Destailleur
f6dd2f808e Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-02-12 03:35:51 +01:00
Laurent Destailleur
ff2d609814 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0
Conflicts:
	htdocs/core/class/commonobject.class.php
	htdocs/mrp/mo_production.php
2024-02-12 03:35:39 +01:00
Laurent Destailleur
2e620c9a43 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-02-12 03:33:09 +01:00
Laurent Destailleur
65533360a2 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0
Conflicts:
	htdocs/main.inc.php
2024-02-12 03:32:58 +01:00
MDW
60f15baef2
Qual: Backport: pre-commit php-cs with cache (#28123)
* Qual: Lower severity on php-cs messages that should not block (#28072)

# Qual: Lower severity on php-cs messages that should not block

Some warning messages result in php-cs having an exit code of 2 and others
only have an exit ocde of 1.  When the exit code is 2, the warnings are fixable
by php-cbf.

In order to be able to filter on the warnings in the github ci flow, but still
show them in the travis flow, I lower the level of the warnings that should not
be blocking to 4.

At the same time, the php-cs configuration in pre-commit now requires that the
severity is minimum 5 to show the message (level 5 is the default for all warnings
and errors).

So this will limit the warning messages to the ones that should result in a failing
ci action.  If any new cases are discovered, they should also be lowered in the
php-cs configuration file.

* Qual: ci: Run pre-commit/php-cs with cache (#28079)

This adds a hook to .pre-commit-config.yaml and updates the workflow
to run php-cs with cache when it is run for all files.
When running on changed files only, the cache is not useful.

The php-codesniffer ruleset.xml was cleaned up (duplicates removal/formatted)
2024-02-12 03:30:19 +01:00
thibdrev
838f706e5e
qual: phpstan for htdocs/holiday/class/holiday.class.php (#28117)
htdocs/holiday/class/holiday.class.php	94	Property Holiday::$date_valid (int) does not accept default value of type string.
htdocs/holiday/class/holiday.class.php	114	Property Holiday::$date_refuse (int) does not accept default value of type string.
htdocs/holiday/class/holiday.class.php	124	Property Holiday::$date_cancel (int) does not accept default value of type string.
htdocs/holiday/class/holiday.class.php	1603	Method Holiday::getConfCP() should return string but returns int.
htdocs/holiday/class/holiday.class.php	1614	Method Holiday::getConfCP() should return string but returns int.
htdocs/holiday/class/holiday.class.php	1797	Method Holiday::getCPforUser() should return float but returns null.
htdocs/holiday/class/holiday.class.php	1800	Method Holiday::getCPforUser() should return float but returns null.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-12 03:22:15 +01:00
thibdrev
18c023b983
qual: phpstan for htdocs/variants/class/ProductAttribute.class.php (#27985)
htdocs/variants/class/ProductAttribute.class.php	1401	Parameter #7 $seller (string) of method ProductAttribute::printObjectLine() should be compatible with parameter $seller (Societe) of method CommonObject::printObjectLine()
htdocs/variants/class/ProductAttribute.class.php	1401	Parameter #8 $buyer (string) of method ProductAttribute::printObjectLine() should be compatible with parameter $buyer (Societe) of method CommonObject::printObjectLine()

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-12 03:17:47 +01:00
Laurent Destailleur
a2d2247d0d Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-12 02:52:52 +01:00
Laurent Destailleur
1caf853528 Work on website templates from modules 2024-02-12 02:52:35 +01:00
thibdrev
d44172c311
qual: phpstan for htdocs/compta/bank/various_payment/card.php (#28113)
htdocs/compta/bank/various_payment/card.php	121	Property PaymentVarious::$amount (float) does not accept string.
htdocs/compta/bank/various_payment/card.php	129	Property PaymentVarious::$category_transaction (int) does not accept array|string.
htdocs/compta/bank/various_payment/card.php	293	Property PaymentVarious::$amount (float) does not accept string.
htdocs/compta/bank/various_payment/card.php	295	Property PaymentVarious::$amount (float) does not accept string.
2024-02-12 02:12:24 +01:00
thibdrev
9dbfb1de46
qual: phpstan for htdocs/compta/bank/class/paymentvarious.class.php (#28114)
htdocs/compta/bank/class/paymentvarious.class.php	241	Property PaymentVarious::$amount (float) does not accept string.

htdocs/compta/bank/class/paymentvarious.class.php	459	Property PaymentVarious::$amount (float) does not accept string.
2024-02-12 02:11:28 +01:00