[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 13/21: New : label cannot be empty
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 13/21: New : label cannot be empty |
Date: |
Sun, 15 Dec 2024 09:51:38 -0500 (EST) |
sparkyx pushed a commit to branch unstable
in repository noalyss.
commit fa86e4d86bc6637f72a0f8a959e532c7aefbe6d5
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon Dec 9 14:30:07 2024 +0100
New : label cannot be empty
---
include/class/tva_rate_mtable.class.php | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/class/tva_rate_mtable.class.php
b/include/class/tva_rate_mtable.class.php
index ac7db2a46..8d7897868 100644
--- a/include/class/tva_rate_mtable.class.php
+++ b/include/class/tva_rate_mtable.class.php
@@ -396,7 +396,10 @@ class Tva_Rate_MTable extends Manage_Table_SQL
$this->set_error("tva_reverse_account", _("Poste comptable
inexistant"));
}
}
-
+ // label cannot be empty
+ if ( trim($this->table->tva_label??"")=="") {
+ $this->set_error("tva_label", _('Le label ne peut ĂȘtre vide'));
+ }
if ($this->count_error()!=0)
return false;
return true;
- [Noalyss-commit] [noalyss] branch unstable updated (078674672 -> 80be65420), dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 01/21: PHP8.3 : remove deprecated in Document_Type, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 12/21: FIX P0TVA when no data, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 03/21: Improve Code Documentation, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 13/21: New : label cannot be empty,
dwm <=
- [Noalyss-commit] [noalyss] 02/21: Merge branch '241104-correct' into unstable, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 15/21: improve Operation detail : show Analytic imputation for VAT Not Deductible, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 04/21: css : font size rem or % , remove all fixed font-size in px, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 20/21: VAT ND Analytic : fix bug, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 07/21: NEW #0002395: C0TVA : pouvoir choisir la contrepartie pour l'autoliquidation, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 06/21: FIX : some doc in comment, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 21/21: Esthetic, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 11/21: FIX : javascript id$ function, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 09/21: FIX : Tax_Summary->check fails when there is no data, check was not correct, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 05/21: WIP : CSS : use variables, dwm, 2024/12/15