valid bank-Account

This commit is contained in:
peter 2013-04-23 22:02:08 +02:00
parent 395d16bd5f
commit f2fd2de1b4
2 changed files with 10 additions and 9 deletions

View File

@ -71,8 +71,9 @@ INSERT INTO contact (bp_id, salut, first_name, last_name, firma, email)
--
-- table: bank_account
--
INSERT INTO bank_account (bp_id, autodebit_ga, autodebit_ar, autodebit_op)
SELECT bp_id, true, true, true FROM business_partner WHERE member_id=10000;
INSERT INTO bank_account (bp_id, autodebit_ga, autodebit_ar, autodebit_op,
bank_customer, bank_account, bank_code, bank_name)
SELECT bp_id, false, false, false, '', '', '', '' FROM business_partner WHERE member_id=10000;
--
-- table: billdata

View File

@ -5,13 +5,13 @@
CREATE TABLE bank_account (
bank_account_id integer DEFAULT nextval(('"bank_account_bank_account_id_seq"'::text)::regclass) NOT NULL,
bp_id integer NOT NULL,
autodebit_ga boolean NOT NULL,
autodebit_ar boolean NOT NULL,
autodebit_op boolean NOT NULL,
bank_customer character varying(50) NOT NULL,
bank_account character varying(10) NOT NULL,
bank_code character varying(8) NOT NULL,
bank_name character varying(50) NOT NULL
autodebit_ga boolean NOT NULL DEFAULT false,
autodebit_ar boolean NOT NULL DEFAULT false,
autodebit_op boolean NOT NULL DEFAULT false,
bank_customer character varying(50) NOT NULL DEFAULT '',
bank_account character varying(10) NOT NULL DEFAULT '',
bank_code character varying(8) NOT NULL DEFAULT '',
bank_name character varying(50) NOT NULL DEFAULT ''
);