[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,
- [Noalyss-commit] [noalyss] 237/323: Database : change SQL function, (continued)
- [Noalyss-commit] [noalyss] 237/323: Database : change SQL function, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 266/323: Upgrade : improve message, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 254/323: Tag : fix bug when adding a new tag, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 246/323: Javascript : improve exception management for fill_box, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 253/323: ANCPLAN : fix bug when removing operation, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 285/323: CSS : esthetic div.box (dashboard) width : 98%, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 178/323: User::check_module improve doc, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 180/323: Symbol zoom, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 259/323: fix box search reconcile, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 231/323: Bug : IDate readonly does not contain the ID, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 306/323: Task #0001563: check date paiement VEN,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 300/323: Cosmetic, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 193/323: SQL : fix create extension for account_repository, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 248/323: Install improve message, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 202/323: Improve : New DEFINE NOALYSS_URL, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 218/323: element go_up : fix height, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 235/323: Set version, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 257/323: Tag : box for adding a tag : add a close button, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 283/323: Todo List : fix bug in sort after zooming, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 287/323: Improve favicon.ico, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 182/323: Task #0001535: TVA : réécriture du module , fichier test pour TVA_RATE_MTABLE, Dany De Bontridder, 2018/03/14