Commit graph

151898 commits

Author SHA1 Message Date
daGrumpf
b2b4fc0ca9
FIX: propagate fk_warehouse from BOM/MO to production lines in createProduction() and processBOM() (#38147)
* FIX: propagate fk_warehouse from BOM line in processBOM()

When creating MO lines from a BOM, the fk_warehouse defined on each
BOM line was not copied to the corresponding MO line. This caused
produceandconsumeall() to fail with a stock movement error when a
warehouse is set on BOM lines but not on the MO itself.

* FIX: propagate fk_warehouse from BOM line in processBOM()

When creating MO lines from a BOM, the fk_warehouse defined on each
BOM line was not copied to the corresponding MO line. This caused
produceandconsumeall() to fail with a stock movement error when a
warehouse is set on BOM lines but not on the MO itself.

* Update mo.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-05-10 13:58:59 +02:00
Regis Houssin
e3c93d2b1d
FIX #38131 (#38140)
* FIX #38131

* FIX pre-commit error
2026-05-09 23:13:22 +02:00
Laurent Destailleur
472f649882 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-05-07 13:31:43 +02:00
Laurent Destailleur
16f5965983 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-05-07 13:31:30 +02:00
Laurent Destailleur
d7bdd3256b Fix typo (fix in different direction than #38094) 2026-05-07 13:19:07 +02:00
Laurent Destailleur
efb398ee03 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2026-05-07 13:07:29 +02:00
Laurent Destailleur
c0fb6bf322 Fix typo (fix in different direction than #38094) 2026-05-07 13:07:11 +02:00
atm-lucas
eb5e550490
Fix: reset fk_code_ventilation on invoice clone (#38084) 2026-05-07 12:58:22 +02:00
Rémi Champlon
671f2fc9df
FIX : draft invoice paid when add absolute discount == remain to pay (#38104)
* Fix set paid invoice on status draft when add absolute discount == remain to pay

* fix
2026-05-07 10:11:22 +02:00
Sylvain Legrand
b9507a980c
Fix: scope file picker click to the just-shown attach-new-file form (#38114)
In FormFile::list_of_documents(), when the user clicks the "+ New" button to reveal the upload form (showhideaddbutton), the JS handler triggers jQuery("input[type='file']").click(). This selector matches every <input type="file"> on the page, opening the OS file picker once per match. Users with multiple file inputs in the DOM (e.g. another hidden upload form, an editor's media browser, modules with their own attachers) have to dismiss the file dialog several times before being able to drag-drop or browse normally.

Fix: scope the selector to the form that was just shown:

- jQuery("input[type='file']").click();
+ jQuery(".divattachnewfile input[type='file']").first().click();
No regression on pages with a single .divattachnewfile. Reproduces on any *document.php tab where a hidden second <input type="file"> is present.
2026-05-07 10:04:41 +02:00
Pierre Ardoin
3fa5112ca8
FIX #37649 (#38101)
* Update fournisseur.orderline.class.php

* Update fournisseur.commande.class.php

* Update fournisseur.commande.class.php

* Update fournisseur.commande.class.php

* Update fournisseur.commande.class.php

* Update fournisseur.commande.class.php

* Update fournisseur.commande.class.php
2026-05-06 22:36:24 +02:00
Laurent Destailleur
1933712fc7 Fix value show in info page 2026-05-05 14:44:11 +02:00
Laurent Destailleur
da47038124 Fix alert on blacklisted module when no message provided 2026-05-05 13:41:18 +02:00
Laurent Destailleur
cb7debca53 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-05-05 01:41:43 +02:00
Laurent Destailleur
643637dc07 Fix missing hooks 2026-05-05 01:41:27 +02:00
Laurent Destailleur
eeb7e8cb5d Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-05-04 18:21:25 +02:00
Laurent Destailleur
3de2fa834a Fix typo 2026-05-04 18:20:25 +02:00
Regis Houssin
4861151c92
FIX #38074 (#38075) 2026-05-04 13:10:20 +02:00
ATM-NicolasV
7a572cd1d3
FIX product price.php: preserve default_vat_code and tva_npr when auto-creating initial product_price row (#38034)
When a product has no row in llx_product_price (typical for products
imported in bulk where only llx_product was populated), price.php
auto-creates an initial history line on first display of the price tab
(branch starting at "We must have at least one initial line").

The two updatePrice() calls in this branch omitted parameter 11
(\$newdefaultvatcode) which defaults to ''. In Product::updatePrice()
the SQL then writes default_vat_code = NULL in BOTH llx_product and
the new llx_product_price row, silently wiping a correctly-stored VAT
code on every first display.

Symptom: "ErrorBadValueForParamNotAString" rendered next to selling
price/min selling price (because \$langs->trans(\$object->price_base_type)
is called with NULL when the row is freshly created with empty fields),
and default_vat_code persistently reset to NULL until the user manually
re-saves through the form.

Fix: forward \$object->default_vat_code (and \$object->tva_npr for the
non-multiprice branch) to updatePrice() so the auto-init preserves the
product's VAT configuration.
2026-05-04 12:57:51 +02:00
Laurent Destailleur
b513d57ffd Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-05-03 22:17:00 +02:00
Laurent Destailleur
73003f82ed Trans 2026-05-03 22:16:36 +02:00
Regis Houssin
c24bb892bc
FIX #36589 (#38037) 2026-05-01 23:27:26 +02:00
atm-lena
aaa80c8346
Fix Translation Fr NumberScheduledJobError (#38041)
Co-authored-by: atm-lena-c <lena.challut@gmail.com>
2026-05-01 23:23:43 +02:00
Joachim Kueter
f830b997c6
Fix empty data-rowid on holiday list rows (#38050) 2026-05-01 23:14:46 +02:00
Laurent Destailleur
58b1828c66 Fix option STRIPE_USER_ACCOUNT_FOR_ACTIONS was unreachable 2026-04-30 14:48:36 +02:00
Laurent Destailleur
2126f2315e SEC: Advisory for bbbbb56c64 - Better
sanitization param for GETPOST of htmlheader of website page
2026-04-30 14:42:21 +02:00
Laurent Destailleur
8b06f08318 Doc 2026-04-29 02:48:13 +02:00
Laurent Destailleur
bbbbb56c64 Better sanitization param for GETPOST of htmlheader of website page 2026-04-29 02:38:59 +02:00
Laurent Destailleur
273e41cbaf Field too small 2026-04-29 02:23:07 +02:00
Laurent Destailleur
b10645cb5a FIX missing "blob:" in the assistant for CSP editor. 2026-04-29 02:12:12 +02:00
Laurent Destailleur
8bc5464979 Fix ACE editor content was not read on webpage creation. 2026-04-29 02:09:39 +02:00
Laurent Destailleur
7989c723b4 Fix image of layout 2026-04-29 01:19:32 +02:00
Laurent Destailleur
a300fcb8d9 Fix leak test missing on permission website->writephpwhen editing
htmlheader - Reported by Ahmed Alshammari
2026-04-29 00:29:04 +02:00
ThomasNgr-OpenDSI
c8e2343d56
FIX : use company default RIB when it is defined (#38016)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-28 14:00:45 +02:00
Laurent Destailleur
6891c9a398 Automated merge from 22.0 to 23.0 by tool pullmerge.sh 2026-04-28 11:30:10 +02:00
Laurent Destailleur
3c89b7062b Fix CI 2026-04-28 11:29:42 +02:00
Laurent Destailleur
1c6ae609b7 Automated merge from 22.0 to 23.0 by tool pullmerge.sh 2026-04-28 11:27:34 +02:00
Laurent Destailleur
8a878e8d28 Automated merge from 21.0 to 22.0 by tool pullmerge.sh 2026-04-28 11:24:23 +02:00
Laurent Destailleur
1e6b3dd871 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2026-04-28 11:23:15 +02:00
Laurent Destailleur
dfe6f5f5cb Fix CI 2026-04-28 11:22:58 +02:00
Joe Biboche
905b52579d
Fix: #38011 wrong line seq when generating invoice from order (#38029)
Avoid reordering invoice lines in the case it's been created from an order

Co-authored-by: Mathis GAVILLON <mathis.gavillon@ik.me>
2026-04-28 11:17:08 +02:00
Laurent Destailleur
0e4b92975e Debug v24 2026-04-28 04:53:06 +02:00
Laurent Destailleur
d6cfabcc5a Fix more robust function to extract php 2026-04-28 04:52:55 +02:00
Ni0rd
74b579b620
Fix #37964: In TakePos, stay on closed cash control page after validation instead of reloading TakePos (#37965) 2026-04-26 22:51:09 +02:00
Laurent Destailleur
bcedf47f39 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-04-26 22:40:33 +02:00
Laurent Destailleur
7aabee85ac css 2026-04-26 22:40:14 +02:00
Laurent Destailleur
f722691616 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2026-04-26 22:37:41 +02:00
Laurent Destailleur
4418fad23d Try to fix regression introduced by fix #38006 2026-04-26 22:37:25 +02:00
Pierre Ardoin
0c5e0c6744
Update notify.class.php (#38006) 2026-04-26 22:30:30 +02:00
MDW
3ce8618315
New: Sorting of payment and invoice details (#38001)
* Feat: Sorting of payment and invoice details

# Feat: Sorting of payment and invoice details

In compta/tva/clients.php when its better to order by payment date.  Currently when there are multiple payments for the same invoice for instance, the payments are not grouped.
This fixes that.

- Added sorting functionality for payment and invoice details based on payment date and invoice date
- Implemented a helper function `cmp_fields_date` to compare and sort the details
- Applied the sorting to both payment and invoice details sections in the code

* Qual: Fix phan notice
2026-04-26 22:24:43 +02:00