It turns out that, **this time**, at least, the way to compute the discount is not by “the more expensive”, but “the more expensive _in a given group_”. However, there are a couple of options, such as motorhome, that can be in different groups but only must be used once.
8 lines
221 B
PL/PgSQL
8 lines
221 B
PL/PgSQL
-- Verify camper:draft_payment on pg
|
|
|
|
begin;
|
|
|
|
select has_function_privilege('camper.draft_payment(uuid, date, date, uuid, integer, integer, integer, integer, text, boolean, camper.option_units[])', 'execute');
|
|
|
|
rollback;
|