ctsit / rcc.billing

Automated, data-driven service billing implemented on REDCap Custodian
https://ctsit.github.io/rcc.billing/
Apache License 2.0
0 stars 3 forks source link

Add get_service_request_line_items.R #233

Closed saipavan10-git closed 3 months ago

saipavan10-git commented 3 months ago

Added function compile_service_request_line_items(). This function assembles parts of the service request, project details, and line item history to make a whole line item.

Updatedget_service_request_lines() to also return username

Modified get_new_project_invoice_line_items() to add the output from get_service_request_line_items() to the final result.

saipavan10-git commented 3 months ago

Addresses #234 , #203

pbchase commented 3 months ago

Your test was chaotic. I reduced the chaos somewhat. You are using data form other tests. that is dangerous. You should not do it. You are loading one table with different data in two different DBs. That seems very odd. Make more of your input locally in this test.