money.payment_view_for_aging (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 |
|
payment_type |
|
Yes |
|
accepting_usr |
|
Yes |
|
cash_drawer |
|
Yes |
|
billing |
|
Yes |
View Definition
SELECT p.id,
p.xact,
p.payment_ts,
p.voided,
p.amount,
p.note,
p.payment_type,
bnm.accepting_usr,
bnmd.cash_drawer,
maa.billing
FROM money.payment_view p
LEFT JOIN money.bnm_payment bnm ON bnm.id = p.id
LEFT JOIN money.bnm_desk_payment bnmd ON bnmd.id = p.id
LEFT JOIN money.account_adjustment maa ON maa.id = p.id;