[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 06/11: New : label cannot be empty
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 06/11: New : label cannot be empty |
Date: |
Sun, 15 Dec 2024 09:51:25 -0500 (EST) |
sparkyx pushed a commit to branch stable
in repository noalyss.
commit 5d416e2d95114b857d55265f9624ad743500c04d
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 stable updated (87930cbe3 -> c64f356cf), dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 02/11: FIX : some doc in comment, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 01/11: NEW #0002395: C0TVA : pouvoir choisir la contrepartie pour l'autoliquidation, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 08/11: improve Operation detail : show Analytic imputation for VAT Not Deductible, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 07/11: improve doc, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 09/11: Operation Analytic : save_form_plan_vat_nd , check that the total is the same as the VAT ND amount, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 11/11: VAT ND Analytic : fix bug, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 05/11: FIX P0TVA when no data, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 10/11: Documentation, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 04/11: FIX : Tax_Summary->check fails when there is no data, check was not correct, dwm, 2024/12/15
- [Noalyss-commit] [noalyss] 06/11: New : label cannot be empty,
dwm <=
- [Noalyss-commit] [noalyss] 03/11: Convert upgrade.sql to upgrade202.sql, dwm, 2024/12/15