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.
8 lines
188 B
PL/PgSQL
8 lines
188 B
PL/PgSQL
-- Verify camper:add_invoice on pg
|
|
|
|
begin;
|
|
|
|
select has_function_privilege('camper.add_invoice(integer, date, integer, text, integer, camper.new_invoice_product[])', 'execute');
|
|
|
|
rollback;
|