Some money.payment.xact do not exist in money.billable_xact.id
Bug #1339361 reported by
Blake GH
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
EG 2.4.1
EG 2.6.1
select * from money.payment where xact not in(select id from money.billable_
should return 0 rows but it doesn't. There are payments referring to nothing. I haven't put my finger on it but there must be code that inserts rows into money.payment after getting the next sequence but fails to insert the row into money.billable_
This manifests null/blank columns when running reports related to payments and billing.
summary: |
- money payment xact not exist + Some money.payment.xact does not exist in money.billable_xact.id |
summary: |
- Some money.payment.xact does not exist in money.billable_xact.id + Some money.payment.xact do not exist in money.billable_xact.id |
tags: | added: billing reports |
tags: |
added: circ-billing removed: billing |
Changed in evergreen: | |
status: | Confirmed → Won't Fix |
To post a comment you must log in.
Here's what I see in PINES:
evergreen=# select count(*) from money.payment where xact not in(select id from money.billable_ xact);
count
---------
3081039
(1 row)
However, here's what I see when I check the xact ID against the action. all_circulation table:
evergreen=# select count(*) from money.payment where xact not in(select id from action. all_circulation );
count
--------
466335
(1 row)
That accounts for most of the payments not in the money.billable_xact table, but there are still 466,335 that don't attach to a transaction, whether archived or not.
Marking confirmed.