[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 15/27: add script for table Distribution keys
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 15/27: add script for table Distribution keys |
Date: |
Thu, 02 Oct 2014 14:23:13 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 00e7bb4010c85445786a4bd4611f99eb9f810b89
Author: Dany De Bontridder <address@hidden>
Date: Wed Sep 17 00:53:14 2014 +0200
add script for table Distribution keys
---
sql/upgrade.sql | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/sql/upgrade.sql b/sql/upgrade.sql
index ed45527..0649fd4 100644
--- a/sql/upgrade.sql
+++ b/sql/upgrade.sql
@@ -23,3 +23,35 @@ INSERT INTO menu_ref(me_code, me_menu, me_file,
me_type,me_description_etendue
insert into
profile_menu(me_code,p_id,p_type_display,pm_default,me_code_dep,p_order) values
('ANCKEY',1,'E',0,'ANC',15);
insert into
profile_menu(me_code,p_id,p_type_display,pm_default,me_code_dep,p_order) values
('ANCKEY',2,'E',0,'ANC',15);
+
+create table key_distribution (
+ kd_id serial primary key,
+ kd_name text,
+ kd_description text);
+
+create table key_distribution_ledger (
+ kl_id serial primary key,
+ kd_id bigint not null references key_distribution(kd_id) on update cascade
on delete cascade,
+ jrn_def_id bigint not null references jrn_def(jrn_def_id) on update
cascade on delete cascade
+ );
+
+create table key_distribution_detail(
+ ke_id serial primary key,
+ kd_id bigint not null references key_distribution(kd_id) on update cascade
on delete cascade,
+ ke_row integer not null,
+ ke_percent numeric(20,4) not null
+
+ );
+
+create table key_distribution_activity
+(
+ ka_id serial primary key,
+ ke_id bigint not null references key_distribution_detail(ke_id) on
update cascade on delete cascade,
+ po_id bigint references poste_analytique(po_id) on update cascade on
delete cascade,
+ pa_id bigint not null references plan_analytique(pa_id) on update cascade
on delete cascade
+);
+
+comment on table key_distribution is 'Distribution key for analytic';
+comment on table key_distribution_ledger is 'Legder where the distribution key
can be used' ;
+comment on table key_distribution_detail is 'Row of activity and percent';
+comment on table key_distribution_activity is 'activity (account) linked to
the row';
- [Noalyss-commit] [noalyss] 03/27: Database::make_array ajoute un paramètre dans le cas où le SQL admet une condition, (continued)
- [Noalyss-commit] [noalyss] 03/27: Database::make_array ajoute un paramètre dans le cas où le SQL admet une condition, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 16/27: Add p_jrn is the bottom of the popup, to allow the use of distribution key, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 21/27: Ajout fonction pour calculer pourcentage répartition clef, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 20/27: Cosmetique : alignement colonne pourcent, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 14/27: remove debug info, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 13/27: Add documentation add_row_key, remove secund parameter, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 01/27: Ajout des clef de répartition pour la comptabilité analytique, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 24/27: Task #0001030: PRINTBAL : mettre le numéro de compte en première colonne Task #1030 - PRINTBAL : mettre le numéro de compte en première colonne, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 27/27: Task #1024 : add a message Task #1024 - Comptabiltié analytique : table activité lors confirmation, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 26/27: Task #1024 : add a message Task #1024 - Comptabiltié analytique : table activité lors confirmation, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 15/27: add script for table Distribution keys,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 19/27: fix several bugs : when adding new keys or new rows in a key Task #1021 - Comptabilité analytique : clef de répartition : bouton ajout, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 25/27: Task #1029: PRINTBAL : année précédente dans une autre couleur Task #1029 - PRINTBAL : année précédente dans une autre couleur, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 18/27: Allow to display table without button, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 22/27: Ajout fonction pour calculer pourcentage répartition clef, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 23/27: New Version of prototype.js, Dany De Bontridder, 2014/10/02