money.non_drawer_payment_view (view)
|
This is a database view, not a base table. It has no triggers, indexes, or FK constraints of its own. Querying this view may be more efficient than joining the underlying tables directly. |
Columns
| Column | Type | Nullable | Notes |
|---|---|---|---|
id |
|
Yes |
|
xact |
|
Yes |
|
payment_ts |
|
Yes |
|
voided |
|
Yes |
|
amount |
|
Yes |
|
note |
|
Yes |
|
amount_collected |
|
Yes |
|
accepting_usr |
|
Yes |
|
payment_type |
|
Yes |
View Definition
SELECT p.id,
p.xact,
p.payment_ts,
p.voided,
p.amount,
p.note,
p.amount_collected,
p.accepting_usr,
c.relname AS payment_type
FROM money.bnm_payment p
JOIN pg_class c ON p.tableoid = c.oid
WHERE c.relname <> ALL (ARRAY['cash_payment'::name, 'check_payment'::name, 'credit_card_payment'::name, 'debit_card_payment'::name]);