Closed pbchase closed 7 months ago
In adding ctsi_study_id
I'm wondering when it was used in the anti_join
instead of service_identifier
? Isn't service_identifier
the project_id
?
This anti_join
will not be included in this function but I'm pointing it out on the off chance that it's a bug.
Yes, that's got to be a bug. That Anti join wouldn't do anything. It doesn't harm, but it doesn't help
Addressed by #209
Create a function,
get_project_details_for_billing()
. Given a redcap DB connection object and a vector of project IDs, it should return all these facts needed in a billing record:invoice_line_item
is synch'd byupdate_invoice_line_items_with_invoicing_details.R
)Steal code from create_and_send_new_redcap_prod_per_project_line_items.R, line 74-119, but edit out all of the filters.
To do this, the code will need data from these tables: