After months of keeping what does the ACSI checkbox mean, now customer told us that we should add a discount based on a series of arbitrary conditions that, and need to be done NOW! There is no UI to edit the conditions due to lack of time.
12 lines
199 B
PL/PgSQL
12 lines
199 B
PL/PgSQL
-- Verify camper:payment_customer__-acsi_card on pg
|
|
|
|
begin;
|
|
|
|
select 1 / (1 - count(*))
|
|
from pg_attribute
|
|
where attrelid = 'camper.payment_customer'::regclass
|
|
and attname = 'acsi_card'
|
|
;
|
|
|
|
rollback;
|