camper/verify/payment_customer__-acsi_card.sql
jordi fita mas 0412ffca05 Compute ACSI discount
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.
2024-03-14 22:08:01 +01:00

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;