Copied as much as i could from Numerus, and made as few modifications as i could to adapt to this code base; it is, quite frankly, a piece of shit. We need to be able to create invoices from scratch “just in case”, apparently, but it is not yet possible to create an invoice from a booking.
15 lines
253 B
PL/PgSQL
15 lines
253 B
PL/PgSQL
-- Deploy camper:tax_rate to pg
|
|
-- requires: schema_camper
|
|
|
|
begin;
|
|
|
|
set search_path to camper, public;
|
|
|
|
create domain tax_rate as numeric
|
|
check (value > -1 and value < 1);
|
|
|
|
comment on domain tax_rate is
|
|
'A rate for taxes in the range (-1, 1)';
|
|
|
|
commit;
|