3233 Commits

Author SHA1 Message Date
John BOTELLA
4039e17b89 NEW : Extrafield option for tooltip in getNomUrl (#37431)
* new extrafield option

* Fix php cs

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-03-13 08:25:40 +01:00
Laurent Destailleur
cbf2adc238 CI 2026-03-12 21:58:42 +01:00
boudet jean pascal
a4b8cb7008 NEW : adds visual indicators on the Sales Order card (commande/card.php) (#37460)
* This PR adds visual indicators on the Sales Order card (commande/card.php) to quickly identify if an order or its lines are shippable based on current stock levels. This feature mirrors the existing functionality found in the Orders List, bringing valuable logistics information directly into the Order Card context.

Key Features:
Global Shippable Status: Adds a "shippable" icon (Truck) next to the "Planned delivery date" field.

Logic: Checks if all products in the order are in stock.

Condition: Visible only if Stock and Shipment modules are enabled, a delivery date is set, and the order is validated.

Visual: Green icon if fully shippable, Red/Warning if stock is insufficient. Includes a detailed tooltip.

Per-Line Shippable Status: Adds a new "Shippable" column in the product lines table.

Logic: Compares real stock vs. remaining quantity to ship for each line.

Visual: Displays a green/red status bullet (standard Dolibarr status icons) directly in the line.

Implementation: Done by updating objectline_title.tpl.php and objectline_view.tpl.php with specific checks for the commande element.

New Configuration Option: Added a hidden option ORDER_DISABLE_SHIPPABLE_ICON_ON_CARD to disable this feature if needed (configurable in Home > Setup > Other Setup or via module settings).

Backend Optimization: Added a new method getShippableInfos() in commande.class.php to centralize the stock check logic (optimized with stock caching to avoid N+1 query issues).

Technical Details:
Modified Files:

commande/card.php: Integration of the global icon next to the date.

commande/class/commande.class.php: Added getShippableInfos() method.

core/tpl/objectline_title.tpl.php: Added "Shippable" column header (conditional for Orders).

core/tpl/objectline_view.tpl.php: Added "Shippable" column cell content (conditional for Orders).

Performance: Logic uses static caching for product stock to minimize database impact when rendering large orders.

* missed element

* img_picto

* phan add

* load_stock and global $i

* phan

* ci retour

* change icon
change phan directive

* phan

* Fight against optionflation

Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>

* Change condition for displaying shippable icon

Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>

* Change condition for displaying shippable status icon

Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>

* Update card.php

Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>

* Update shippable status condition in template

Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>

* Update shippable status condition logic

Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>

---------

Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>
Co-authored-by: jpb <jean-pascal.boudet@atm-consulting>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-03-12 14:42:31 +01:00
Laurent Destailleur
4ad6d1b5b3 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2026-03-09 09:55:09 +01:00
Laurent Destailleur
baa1359021 FIX Bad value when entering price with multicurrency included tax.
Debug option PRODUCT_USE_CUSTOMER_PACKAGING not completely implemented
2026-03-06 01:21:04 +01:00
Laurent Destailleur
82d3d3ba92 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-03-02 05:54:03 +01:00
Laurent Destailleur
57a1f05d49 FIX #37372 FIX #37374 2026-03-02 05:52:05 +01:00
Laurent Destailleur
19f8fe8e63 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-03-02 03:14:24 +01:00
Laurent Destailleur
26c38c52f9 Clean code 2026-03-02 02:15:10 +01:00
Laurent Destailleur
f6241de8a0 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-03-01 14:15:34 +01:00
Laurent Destailleur
fc13435730 Debug v23 2026-03-01 14:07:41 +01:00
Sacha Pignot
4810534025 NEW: Add OIDC user auto-creation and fix login bugs (#37314)
* NEW #25922 Add OIDC user auto-creation and fix login bugs

NEW #25922 Add OIDC user auto-creation and fix login bugs

* Fix indentation in OIDC auto-create user admin settings block

* Move require_once statements to file level in openid_connect.lib.php

* Cast login_claim to string before user creation

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-28 15:37:48 +01:00
Laurent Destailleur
342abeaa70 CI 2026-02-28 12:24:44 +01:00
Laurent Destailleur
8478c38477 Debug 2025-02-05 13:57:10 +01:00
Laurent Destailleur
fab3521672 Clean code 2026-02-07 20:44:03 +01:00
Laurent Destailleur
529db21a6c Debug extrafields chckbxlist v23 2026-02-07 14:56:58 +01:00
Laurent Destailleur
943827834c Clean code 2026-02-07 13:21:53 +01:00
Laurent Destailleur
3379457ed7 Fix situation invoice 2026-02-02 20:03:36 +01:00
Laurent Destailleur
440050b7a8 Debug v23 2026-02-02 15:53:41 +01:00
Laurent Destailleur
6b0a3e0f68 FIX Pb in total price of line when adding the discount of a down payment
when unit price was using a high accuracy.
2026-01-29 23:15:07 +01:00
Laurent Destailleur
39d39f475d Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-01-23 17:46:38 +01:00
Laurent Destailleur
cba8ccaa32 Fix PROPAL_ENABLE_NEGATIVE_QTY and ORDER_ENABLE_NEGATIVE_QTY 2026-01-20 02:11:14 +01:00
atm-vincent-p
d4d3c2089e Fix type contact translation (#36891) 2026-01-16 02:37:58 +01:00
Laurent Destailleur
5faccd7216 Debug v23 2026-01-10 12:47:13 +01:00
Laurent Destailleur
578a1ef568 Clean files 2026-01-07 19:01:54 +01:00
Laurent Destailleur
fe09149661 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-01-05 14:44:04 +01:00
Maxime Kohlhaas
ff8a8f5bb4 Fix : presend on reception resulted in fatal error (#36794) 2026-01-05 14:39:42 +01:00
Laurent Destailleur
ba816b847d Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into 23.0
Debug v23
2026-01-05 14:36:23 +01:00
Alexandre SPANGARO
39b251f3ca FIX #36735 Invoice & Supplier invoice - Inconsistency of fk_code_ventilation for lines (FactureLigne & SupplierInvoiceLine) (#36792) 2026-01-05 13:28:09 +01:00
Laurent Destailleur
71648323ea css 2025-12-29 14:17:38 +01:00
Laurent Destailleur
e61d80c847 CSS 2025-12-29 00:43:50 +01:00
Laurent Destailleur
30da90b5a1 CSS 2025-12-29 00:33:24 +01:00
Laurent Destailleur
1400d0dd93 Debug v23 2025-12-28 19:59:23 +01:00
Laurent Destailleur
96162564a3 Try fix for #36513 2025-12-17 13:41:35 +01:00
antonin_tdj
e8bb08ea47 FIX Enhance VAT loading logic for supplier and buyer
Refactor VAT loading to handle supplier and buyer roles dynamically.
2025-12-10 10:50:52 +01:00
Laurent Destailleur
0a45c9b368 Merge pull request #36524 from FHenry/22_feat_subtotal_defaut_values
new: defaut to True show unit price on title and sub total
2025-12-04 14:06:47 +01:00
Florian HENRY
6b05561ee8 new: defaut to True show unit price on title and sub total 2025-12-04 10:22:47 +01:00
Charlène Benke
aae74dac7f fix subtotal column number displayed if margin enabled (#36383) 2025-11-24 15:07:07 +01:00
Charlène Benke
ee261b5a66 Adjust checkbox input style in subtotal_edit.tpl.php (#36387) 2025-11-24 14:59:34 +01:00
Laurent Destailleur
09da2b2365 Merge manually to close #34719. Need to add API_IN_TOKEN_TABLE=1 for the
transition to use several API tokens per user.
2025-11-20 23:51:37 +01:00
Laurent Destailleur
b77e3a4cca Merge branch 'develop' into new-api-rest-tokens 2025-11-20 21:31:20 +01:00
Laurent Destailleur
cf3b3f5e94 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-11-20 21:01:37 +01:00
Laurent Destailleur
3ea601d4c2 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-11-20 21:00:12 +01:00
Laurent Destailleur
bf7be58e10 Fix CI 2025-11-20 20:59:37 +01:00
Laurent Destailleur
1c6cc1a554 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-11-20 20:32:40 +01:00
Laurent Destailleur
fbe30ebfc3 Fix CI 2025-11-20 20:30:44 +01:00
Laurent Destailleur
ae4522c152 Fix CI 2025-11-20 20:14:52 +01:00
Laurent Destailleur
c94b977000 Fix CI 2025-11-20 16:23:47 +01:00
Laurent Destailleur
900646a848 CSS 2025-11-20 15:05:13 +01:00
Laurent Destailleur
0bfd72a995 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-11-20 12:00:49 +01:00