svn+ssh://danydb@svn/svn/phpcompta/branches/rel420 ........ r2174 | danydb | 2008-09-16 21:34:23 +0200 (Tue, 16 Sep 2008) | 3 lines Removed merge tracking for "svnmerge" for svn+ssh://danydb@svn/svn/phpcompta/branches/rel410-exp ........ r2178 | danydb | 2008-09-16 21:43:31 +0200 (Tue, 16 Sep 2008) | 1 line Update version ........ r2191 | danydb | 2008-09-22 20:31:03 +0200 (Mon, 22 Sep 2008) | 1 line Add correct version ........ r2196 | danydb | 2008-10-03 21:46:50 +0200 (Fri, 03 Oct 2008) | 1 line update index version ........ r2234 | danydb | 2008-11-19 20:54:30 +0100 (Wed, 19 Nov 2008) | 1 line Add the payer, not yet finished ........ r2235 | danydb | 2008-11-21 22:34:32 +0100 (Fri, 21 Nov 2008) | 1 line Add the form for setting the medium of payment ........ r2236 | danydb | 2008-11-22 23:15:30 +0100 (Sat, 22 Nov 2008) | 1 line Improve add : payment (second operation) + generation of a note of fee ........ r2237 | danydb | 2008-11-23 01:20:40 +0100 (Sun, 23 Nov 2008) | 1 line Improve Payment method ........ r2238 | danydb | 2008-11-23 01:45:52 +0100 (Sun, 23 Nov 2008) | 1 line Get only the valid payment method ........ r2239 | danydb | 2008-11-24 23:03:34 +0100 (Mon, 24 Nov 2008) | 1 line cosmetic remove debug info ........ r2240 | danydb | 2008-11-24 23:04:07 +0100 (Mon, 24 Nov 2008) | 1 line Filter the search to the good frd_id ........ r2241 | danydb | 2008-11-26 18:11:30 +0100 (Wed, 26 Nov 2008) | 2 lines BUG if no class base is given the flag create account is false ........ r2242 | danydb | 2008-11-26 18:45:56 +0100 (Wed, 26 Nov 2008) | 1 line Create note of fee + database patch ........
37 lines
1.7 KiB
PL/PgSQL
37 lines
1.7 KiB
PL/PgSQL
begin;
|
|
CREATE TABLE mod_payment (
|
|
mp_id serial,
|
|
mp_lib text NOT NULL,
|
|
mp_jrn_def_id integer NOT NULL,
|
|
mp_type character varying(3) NOT NULL,
|
|
mp_fd_id bigint ,
|
|
mp_qcode text
|
|
);
|
|
COMMENT ON TABLE mod_payment IS 'Contains the different media of payment and the corresponding ledger';
|
|
|
|
INSERT INTO mod_payment (mp_id, mp_lib, mp_jrn_def_id, mp_type, mp_fd_id, mp_qcode) VALUES (2, 'Caisse', 1, 'VEN', NULL, NULL);
|
|
INSERT INTO mod_payment (mp_id, mp_lib, mp_jrn_def_id, mp_type, mp_fd_id, mp_qcode) VALUES (4, 'Caisse', 1, 'ACH', NULL, NULL);
|
|
INSERT INTO mod_payment (mp_id, mp_lib, mp_jrn_def_id, mp_type, mp_fd_id, mp_qcode) VALUES (1, 'Paiement électronique', 1, 'VEN', NULL, NULL);
|
|
INSERT INTO mod_payment (mp_id, mp_lib, mp_jrn_def_id, mp_type, mp_fd_id, mp_qcode) VALUES (3, 'Par gérant ou administrateur', 2, 'ACH', NULL, NULL);
|
|
|
|
ALTER TABLE ONLY mod_payment
|
|
ADD CONSTRAINT mod_payment_pkey PRIMARY KEY (mp_id);
|
|
ALTER TABLE ONLY mod_payment
|
|
ADD CONSTRAINT mod_payment_mp_fd_id_fkey FOREIGN KEY (mp_fd_id) REFERENCES fiche_def(fd_id);
|
|
ALTER TABLE ONLY mod_payment
|
|
ADD CONSTRAINT mod_payment_mp_jrn_def_id_fkey FOREIGN KEY (mp_jrn_def_id) REFERENCES jrn_def(jrn_def_id);
|
|
INSERT INTO document_type (dt_id, dt_value) VALUES (10, 'Note de frais');
|
|
|
|
insert into fiche_def_ref (frd_id,frd_text) values (25,'Compte Salarié / Administrateur');
|
|
insert into attr_min values (25,1);
|
|
insert into attr_min values(25,4);
|
|
insert into attr_min values (25,3);
|
|
insert into attr_min values(25,5);
|
|
insert into attr_min values (25,15);
|
|
insert into attr_min values(25,16);
|
|
insert into attr_min values(25,24);
|
|
insert into attr_min values(25,23);
|
|
|
|
|
|
update version set val=53;
|
|
commit;
|