Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a fetch function on the Invoice #92

Open
knikolla opened this issue Sep 5, 2024 · 0 comments
Open

Implement a fetch function on the Invoice #92

knikolla opened this issue Sep 5, 2024 · 0 comments
Assignees
Milestone

Comments

@knikolla
Copy link
Contributor

knikolla commented Sep 5, 2024

One of the steps that Kim has to go through is generating graphs and insights from invoices of previous months. We can easily automate this by fetching the already uploaded invoices based on month and running whatever comparisons we need.

We should therefore be able to do

b_08 = BillableInvoice(invoice_month="2024-08")
b_08.fetch(s3_bucket)
b_07 = BillableInvoice(invoice_month="2024-07")
b_07.fetch(s3_bucket)

And this would give us the invoice as exported for 2024-08 and 2024-07 in the data dataframe of the objects b_. We know where to download from s3 if #91 is implemented.

Eventually, we only really want the singular dataframe (after all processors) to be fetchable (which we will also export as is) as applying the future "views" will get us the invoices we need exactly. (Do not worry about PI invoices)


THESE TASKS ARE LOW PRIORITY

@knikolla knikolla self-assigned this Sep 5, 2024
@knikolla knikolla added this to the Insights milestone Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant