Skip to content

(SE-125) Sandbox billing: basic report

Boros Gábor requested to merge jazzar/billing-reports into master

Created by: iamjazzar

TASK: SE-125

Requirements

In this PR you need to test the following:

Description Developed Tested
New Django app and URLs for issuing reports.
Custom links for users in the Admin panel to view their reports.
Filtering data for an organization, and for a particular month (URL only in this task).
Generate invoices, by computing the number of days to bill.
Show only relevant AppServers (The ones that were active in the period).
Simple HTML report, that can be copy+pasted into invoices.

Test instructions

  • Create an Organization
  • Create OpenEdxInstance
  • Create WatchedFork and link it to that organization.
  • Create Watched PR and link them with WatchedFork and the created instance.
  • Spawn new AppServers
  • Go to the Organizations page in the admin panel
  • Click on Invoice Report link that will take you to the Invoice page.
  • Repeat the process above to cover all test casses (AppServer that's terminated in the previous billing month, AppServer that's still running the current billing month, AppServer that's created after the billing month, ..)
  • Check that the number of computed working days for each AppServer are correct.
  • Check the number of computed charge per each AppServer, and fork, and all forks are computed correctly.
  • Try copying and pasting the table in different platforms and check whether it keeps the correct format after the paste.
  • Try changing the month and the year from the url and check the above again.

Screenshots

screen shot 2018-09-30 at 3 29 52 am screen shot 2018-09-30 at 3 29 47 am screen shot 2018-10-01 at 4 37 47 am

Merge request reports