Fix 0001728: Aide à l'encodage - Journaux négatifs (note de crédit)
SQL Scripts
This commit is contained in:
parent
c997708f95
commit
dfc79b6a29
2 changed files with 16 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ if ( !defined ("NOALYSS_PACKAGE_REPOSITORY")) {
|
||||||
if ( ! defined ("SYSINFO_DISPLAY")) {
|
if ( ! defined ("SYSINFO_DISPLAY")) {
|
||||||
define ("SYSINFO_DISPLAY",TRUE);
|
define ("SYSINFO_DISPLAY",TRUE);
|
||||||
}
|
}
|
||||||
define ("DBVERSION",136);
|
define ("DBVERSION",137);
|
||||||
define ("MONO_DATABASE",25);
|
define ("MONO_DATABASE",25);
|
||||||
define ("DBVERSIONREPO",18);
|
define ("DBVERSIONREPO",18);
|
||||||
define ('NOTFOUND','--not found--');
|
define ('NOTFOUND','--not found--');
|
||||||
|
|
|
||||||
15
include/sql/patch/upgrade136.sql
Normal file
15
include/sql/patch/upgrade136.sql
Normal file
|
|
@ -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 ;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue