From 00fe425b0fd2395a40fd81b1874d92fca2cd6018 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 Mar 2025 19:22:55 +0100 Subject: [PATCH 1/6] Fix css --- htdocs/core/class/html.form.class.php | 2 +- htdocs/theme/eldy/global.inc.php | 2 +- htdocs/theme/md/style.css.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 08a27e4861b..cb19a6e2df1 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -7384,7 +7384,7 @@ class Form $retstring .= ' onChange="dpChangeDay(\'' . dol_escape_js($prefix) . '\',\'' . dol_escape_js($langs->trans("FormatDateShortJavaInput")) . '\'); "'; // FormatDateShortInput for dol_print_date / FormatDateShortJavaInput that is same for javascript $retstring .= ' autocomplete="off">'; - // Icone calendrier + // Icon calendar if ($disabled) { $retstringbutton = ''; $retstring = $retstringbutton . $retstring; diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 6f10003a874..78c1a6e180a 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -1989,7 +1989,7 @@ maxscreenheightless200 { .maxwidth40 { max-width: 40px; } .maxwidth50 { max-width: 50px; } .maxwidth75 { max-width: 75px; } -.maxwidthdate { max-width: 85px; } +.maxwidthdate { max-width: 90px; } .maxwidth100 { max-width: 100px; } .maxwidth125 { max-width: 125px; } .maxwidth150 { max-width: 150px; } diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index cb3bbfdee00..c682df2452c 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -2135,7 +2135,7 @@ tr.nobottom td { .maxwidth40 { max-width: 40px; } .maxwidth50 { max-width: 50px; } .maxwidth75 { max-width: 75px; } -.maxwidthdate { max-width: 85px; } +.maxwidthdate { max-width: 90px; } .maxwidth100 { max-width: 100px; } .maxwidth125 { max-width: 125px; } .maxwidth150 { max-width: 150px; } From 57fe705f5c0f31deacddd8fca96589f03d792051 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 Mar 2025 19:49:31 +0100 Subject: [PATCH 2/6] Fix css --- htdocs/theme/eldy/global.inc.php | 2 +- htdocs/theme/md/style.css.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 78c1a6e180a..5318c2ea9ab 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -1989,7 +1989,7 @@ maxscreenheightless200 { .maxwidth40 { max-width: 40px; } .maxwidth50 { max-width: 50px; } .maxwidth75 { max-width: 75px; } -.maxwidthdate { max-width: 90px; } +.maxwidthdate { max-width: 95px; } .maxwidth100 { max-width: 100px; } .maxwidth125 { max-width: 125px; } .maxwidth150 { max-width: 150px; } diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index c682df2452c..af6996962a4 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -2135,7 +2135,7 @@ tr.nobottom td { .maxwidth40 { max-width: 40px; } .maxwidth50 { max-width: 50px; } .maxwidth75 { max-width: 75px; } -.maxwidthdate { max-width: 90px; } +.maxwidthdate { max-width: 95px; } .maxwidth100 { max-width: 100px; } .maxwidth125 { max-width: 125px; } .maxwidth150 { max-width: 150px; } From 5443b7cc11b8101d3ebce5cc2b592f1e028669df Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 Mar 2025 20:30:02 +0100 Subject: [PATCH 3/6] FIX Bad link to download tax vat document --- htdocs/compta/tva/card.php | 2 +- htdocs/ecm/class/ecmfiles.class.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/tva/card.php b/htdocs/compta/tva/card.php index dcf5d5b3248..99710575723 100644 --- a/htdocs/compta/tva/card.php +++ b/htdocs/compta/tva/card.php @@ -112,7 +112,6 @@ $resteapayer = 0; * Actions */ - $parameters = array('socid' => $socid); $reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks if ($reshook < 0) { @@ -857,6 +856,7 @@ if ($id > 0) { $urlsource = $_SERVER["PHP_SELF"]."?id=".$object->id; $genallowed = 0; $delallowed = $user->hasRight('tax', 'charges', 'creer'); // If you can create/edit, you can remove a file on card + print $formfile->showdocuments('tax-vat', $objref, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 1, 0, 0, 28, 0, '', '', '', $langs->defaultlang); } diff --git a/htdocs/ecm/class/ecmfiles.class.php b/htdocs/ecm/class/ecmfiles.class.php index 0bd44eceb31..91cf29374b4 100644 --- a/htdocs/ecm/class/ecmfiles.class.php +++ b/htdocs/ecm/class/ecmfiles.class.php @@ -1012,6 +1012,8 @@ class EcmFiles extends CommonObject $tmppath = preg_replace('/^(\d+\/)?fournisseur\/facture\//', '', $this->filepath); } elseif ($option == 'commande_fournisseur') { $tmppath = preg_replace('/^(\d+\/)?fournisseur\/commande\//', '', $this->filepath); + } elseif ($option == 'tax-vat') { // Remove part "tax/vat/" + $tmppath = preg_replace('/^(\d+\/)?tax\/vat\//', '', $this->filepath); } else { if ((int) $this->entity > 1) { // Remove the part "entityid/commande/" into "entityid/commande/REFXXX" to get only the ref From 75594b4e70ee5c0fad5baf7dbc9cf35443f2d28e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 Mar 2025 21:10:56 +0100 Subject: [PATCH 4/6] FIX CSS in total --- htdocs/core/boxes/box_factures_fourn_imp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/boxes/box_factures_fourn_imp.php b/htdocs/core/boxes/box_factures_fourn_imp.php index cd5a8c98eae..c57dc8f1148 100644 --- a/htdocs/core/boxes/box_factures_fourn_imp.php +++ b/htdocs/core/boxes/box_factures_fourn_imp.php @@ -229,7 +229,7 @@ class box_factures_fourn_imp extends ModeleBoxes 'text' => " ", ); $this->info_box_contents[$line][] = array( - 'td' => 'class="right liste_total" ', + 'td' => 'class="nowraponall right liste_total"', 'text' => price($totalamount, 0, $langs, 0, -1, -1, $conf->currency), ); $this->info_box_contents[$line][] = array( From b6df51dc8724c5989e6b7497d21c1099dc565b73 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 Mar 2025 22:16:41 +0100 Subject: [PATCH 5/6] Fix CSS --- htdocs/core/boxes/box_factures_imp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/boxes/box_factures_imp.php b/htdocs/core/boxes/box_factures_imp.php index a4f91c30985..2efe125cb65 100644 --- a/htdocs/core/boxes/box_factures_imp.php +++ b/htdocs/core/boxes/box_factures_imp.php @@ -244,7 +244,7 @@ class box_factures_imp extends ModeleBoxes 'text' => " ", ); $this->info_box_contents[$line][] = array( - 'td' => 'class="right liste_total" ', + 'td' => 'class="nowraponall right liste_total" ', 'text' => price($totalamount, 0, $langs, 0, -1, -1, $conf->currency), ); $this->info_box_contents[$line][] = array( From 142fb7167cabc2f93f66b2fd6b6bba840b7e0bef Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 Mar 2025 22:19:05 +0100 Subject: [PATCH 6/6] Fix CSS --- htdocs/core/boxes/box_factures_imp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/boxes/box_factures_imp.php b/htdocs/core/boxes/box_factures_imp.php index 2efe125cb65..c59f62a80d9 100644 --- a/htdocs/core/boxes/box_factures_imp.php +++ b/htdocs/core/boxes/box_factures_imp.php @@ -235,7 +235,7 @@ class box_factures_imp extends ModeleBoxes // Add the sum à the bottom of the boxes $this->info_box_contents[$line][] = array( - 'tr' => 'class="liste_total_wrap"', + 'tr' => 'class="liste_total"', 'td' => 'class="liste_total"', 'text' => $langs->trans("Total"), );