noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 188/219: Plan Comptable : max longueur du pos


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 188/219: Plan Comptable : max longueur du poste = 40
Date: Mon, 18 Dec 2017 13:23:00 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit d5a1e05ce31b006e0ee77cb0da130aef340a915c
Author: Dany De Bontridder <address@hidden>
Date:   Sat Dec 9 12:41:41 2017 +0100

    Plan Comptable : max longueur du poste = 40
---
 include/class/acc_plan_mtable.class.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/class/acc_plan_mtable.class.php 
b/include/class/acc_plan_mtable.class.php
index 43fcdf3..c2b7ed4 100644
--- a/include/class/acc_plan_mtable.class.php
+++ b/include/class/acc_plan_mtable.class.php
@@ -129,6 +129,10 @@ class Acc_Plan_MTable extends Manage_Table_SQL
         if ( trim($this->table->pcm_val) == "") {
             $this->set_error("pcm_val", _("Poste comptable ne peut être 
vide"));
         }
+        // Check size
+         if ( strlen(trim($this->table->pcm_val)) > 40) {
+            $this->set_error("pcm_val", _("Poste comptable trop long"));
+        }
         if ( trim($this->table->parent_accounting) == "") {
             $this->set_error("parent_accounting", _("Poste comptable dépendant 
ne peut pas être vide"));
         }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]