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.
17 lines
349 B
PL/PgSQL
17 lines
349 B
PL/PgSQL
-- Verify camper:tax on pg
|
|
|
|
begin;
|
|
|
|
select tax_id
|
|
, company_id
|
|
, tax_class_id
|
|
, name
|
|
, rate
|
|
from camper.tax
|
|
where false;
|
|
|
|
select 1 / count(*) from pg_class where oid = 'camper.tax'::regclass and relrowsecurity;
|
|
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'camper.tax'::regclass;
|
|
|
|
rollback;
|