1 create table dunning_config (
2 "id" integer DEFAULT nextval('id'::text) PRIMARY KEY,
3 "dunning_level" integer,
4 "dunning_description" text,
9 "payment_terms" integer,
11 "interest" numeric(15,5),
14 "email_attachment" boolean,
18 create table dunning (
19 id integer DEFAULT nextval('id'::text) PRIMARY KEY,
22 dunning_level integer,
26 interest numeric(15,5)
29 alter table ar add column dunning_id integer;
32 CREATE FUNCTION set_priceupdate_parts() RETURNS opaque AS '
34 NEW.priceupdate := ''now'';
39 CREATE TRIGGER priceupdate_parts AFTER UPDATE ON parts
40 FOR EACH ROW EXECUTE PROCEDURE set_priceupdate_parts();