numerus/verify/invoice_product_tax.sql

15 lines
397 B
MySQL
Raw Normal View History

2023-02-15 13:49:06 +00:00
-- Verify numerus:invoice_product_tax on pg
begin;
select invoice_product_id
, tax_id
, tax_rate
from numerus.invoice_product_tax
where false;
select 1 / count(*) from pg_class where oid = 'numerus.invoice_product_tax'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'numerus.invoice_product_tax'::regclass;
rollback;