noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 306/323: Task #0001563: check date paiement V


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 306/323: Task #0001563: check date paiement VEN
Date: Wed, 14 Mar 2018 17:39:09 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 6dce3093a415117d47aace35a0f2113cf3253b21
Author: Dany De Bontridder <address@hidden>
Date:   Tue Mar 6 08:39:26 2018 +0100

    Task #0001563: check date paiement VEN
---
 include/class/acc_ledger_sold.class.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/class/acc_ledger_sold.class.php 
b/include/class/acc_ledger_sold.class.php
index bfee0b6..ecea761 100644
--- a/include/class/acc_ledger_sold.class.php
+++ b/include/class/acc_ledger_sold.class.php
@@ -219,6 +219,12 @@ class Acc_Ledger_Sold extends Acc_Ledger {
         if ($e_mp != 0) {
             $this->check_payment($e_mp, ${"e_mp_qcode_" . $e_mp});
         }
+        
+        // Check payment date
+        if ( isset ($mp_date) && trim ($mp_date) != "" && isDate($mp_date) == 
null)  {
+            throw new Exception(_('Date de paiement invalide'),13);
+            
+        }
     }
 
     /*!\brief insert into the database, it calls first the verify function,



reply via email to

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