I am going to add similar functions for invoices, as i will need to add the taxes for their products and their own taxes, thus the Go code will begin to be “too much work” and i feel better if that is in PL/pgSQL. If i have these functions for invoices, there is no point on having to do almost the same work, albeit less, for products.
8 lines
159 B
PL/PgSQL
8 lines
159 B
PL/PgSQL
-- Verify numerus:add_product on pg
|
|
|
|
begin;
|
|
|
|
select has_function_privilege('numerus.add_product(integer, text, text, text, integer[])', 'execute');
|
|
|
|
rollback;
|