From eaa146293ea1df1191aec3498f7d2653ccd3f1e0 Mon Sep 17 00:00:00 2001 From: Yamil Esteban Garcia <120027058+developmentOYR@users.noreply.github.com> Date: Mon, 9 Feb 2026 03:55:34 +0100 Subject: [PATCH] Fix: IRPF tax not applied when creating invoice from project times (#37077) * Remove 'supplier_invoice' from old path array * Update module path in arrayforoldpath Sorry Eldy, I was confused. You are absolutely right, it is already corrected. * Replace localtax2 assignment with get_localtax function Error when creating an invoice with personal income tax from project times. The rate does not apply * Refactor localtax1 calculation using get_localtax --------- Co-authored-by: Laurent Destailleur --- htdocs/projet/tasks/time.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php index ad95c50a12d..2c27d3675ce 100644 --- a/htdocs/projet/tasks/time.php +++ b/htdocs/projet/tasks/time.php @@ -470,8 +470,8 @@ if ($action == 'confirm_generateinvoice' && $user->hasRight('facture', 'creer')) $pu_ht = empty($dataforprice['pu_ht']) ? 0 : $dataforprice['pu_ht']; $txtva = $dataforprice['tva_tx']; - $localtax1 = $dataforprice['localtax1']; - $localtax2 = $dataforprice['localtax2']; + $localtax1 = get_localtax($txtva, 1, $projectstatic->thirdparty); + $localtax2 = get_localtax($txtva, 2, $projectstatic->thirdparty); } else { $prodDurationHoursBase = 1;