[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 103/107: Fix 0001728: Aide à l'encodage - Jo
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 103/107: Fix 0001728: Aide à l'encodage - Journaux négatifs (note de crédit) SQL Scripts |
Date: |
Mon, 26 Aug 2019 10:32:10 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit dfc79b6a296a61272c6f9ed8d1a6b5f141d15404
Author: Dany De Bontridder <address@hidden>
Date: Mon Aug 26 15:09:45 2019 +0200
Fix 0001728: Aide à l'encodage - Journaux négatifs (note de crédit)
SQL Scripts
---
include/constant.php | 2 +-
include/sql/patch/upgrade136.sql | 15 +++++++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/include/constant.php b/include/constant.php
index 81911ff..d157706 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -108,7 +108,7 @@ if ( !defined ("NOALYSS_PACKAGE_REPOSITORY")) {
if ( ! defined ("SYSINFO_DISPLAY")) {
define ("SYSINFO_DISPLAY",TRUE);
}
-define ("DBVERSION",136);
+define ("DBVERSION",137);
define ("MONO_DATABASE",25);
define ("DBVERSIONREPO",18);
define ('NOTFOUND','--not found--');
diff --git a/include/sql/patch/upgrade136.sql b/include/sql/patch/upgrade136.sql
new file mode 100644
index 0000000..c74314e
--- /dev/null
+++ b/include/sql/patch/upgrade136.sql
@@ -0,0 +1,15 @@
+begin;
+
+alter table jrn_def add column jrn_def_negative_amount char(1) default '0';
+update jrn_def set jrn_def_negative_amount = '0';
+alter table jrn_def add constraint negative_amount_ck check
(jrn_def_negative_amount in ('1','0'));
+alter table jrn_def alter jrn_def_negative_amount set not null;
+comment on column jrn_def.jrn_def_negative_amount is '1 echo a warning if you
are not using an negative amount, default 0 for no warning';
+alter table jrn_def add column jrn_def_negative_warning text;
+update jrn_def set jrn_def_negative_warning = 'Attention, ce journal doit
utiliser des montants négatifs';
+comment on column jrn_def.jrn_def_negative_warning is 'Yell a warning if the
amount if not negative , in the case of jrn_def_negative_amount is Y';
+
+
+
+insert into version (val,v_description) values (137,'Ledger warning');
+commit ;
\ No newline at end of file
- [Noalyss-commit] [noalyss] 55/107: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, (continued)
- [Noalyss-commit] [noalyss] 55/107: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 57/107: PDF_Core : code cleaning, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 71/107: Select_Box add a search, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 77/107: Security : replace direct use of $_GET, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 45/107: Replace PHPCOMPTA by NOALYSS, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 90/107: Cosmetic : add button close in history card & accounting, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 88/107: SQL : correct SQL script to take care of users who delete the profile no 2, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 104/107: 0001728: Aide à l'encodage - Journaux négatifs (note de crédit) Unit test, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 48/107: Doxygen does not allow to document javascript Remove tag for using with jsdoc, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 89/107: Task #1735: Détail opération utilisation icone poubelle, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 103/107: Fix 0001728: Aide à l'encodage - Journaux négatifs (note de crédit) SQL Scripts,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 97/107: New : InputSwitch, display a switch and change the value of a hidden variable, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 102/107: New Task 1728: Aide à l'encodage - Journaux négatifs (note de crédit), Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 42/107: squash! PHPUnit : adapt to new version, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 49/107: translation, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 86/107: Cosmetic : Icon_Trash in Todo_List, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 96/107: traduction, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 70/107: Merge branch 'dev-7109-pluton' into dev7109, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 91/107: Cosmetic : add button close in detail card, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 100/107: CSS : add a class "warning", Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 101/107: Translation, Dany De Bontridder, 2019/08/26