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

Usage Screen: Handling tariffs with different standing charge, (and over time) #137

Open
ryanw-mobile opened this issue May 30, 2024 · 1 comment
Assignees
Labels
feature A new feature for the user, not a new feature for a build script.

Comments

@ryanw-mobile
Copy link
Owner

ryanw-mobile commented May 30, 2024

Example: E-1R-VAR-22-11-01-A

  • Even for the current standing charge, we have to pick the right payment method.
  • We also have to decide if we want to fit past standing charges - the calculation will be inefficient without a DB to cache the data.
  "count": 8,
  "next": null,
  "previous": null,
  "results": [
    {
      "value_exc_vat": 45.57,
      "value_inc_vat": 47.8485,
      "valid_from": "2024-03-31T23:00:00Z",
      "valid_to": null,
      "payment_method": "DIRECT_DEBIT"
    },
    {
      "value_exc_vat": 50.79,
      "value_inc_vat": 53.3295,
      "valid_from": "2024-03-31T23:00:00Z",
      "valid_to": null,
      "payment_method": "NON_DIRECT_DEBIT"
    },
    {
      "value_exc_vat": 40.01,
      "value_inc_vat": 42.0105,
      "valid_from": "2024-01-01T00:00:00Z",
      "valid_to": "2024-03-31T23:00:00Z",
      "payment_method": "DIRECT_DEBIT"
    },
    {
      "value_exc_vat": 45.23,
      "value_inc_vat": 47.4915,
      "valid_from": "2024-01-01T00:00:00Z",
      "valid_to": "2024-03-31T23:00:00Z",
      "payment_method": "NON_DIRECT_DEBIT"
    },
    {
      "value_exc_vat": 40.0125,
      "value_inc_vat": 42.013125,
      "valid_from": "2023-03-31T23:00:00Z",
      "valid_to": "2024-01-01T00:00:00Z",
      "payment_method": "DIRECT_DEBIT"
    },
    {
      "value_exc_vat": 45.2311,
      "value_inc_vat": 47.492655,
      "valid_from": "2023-03-31T23:00:00Z",
      "valid_to": "2024-01-01T00:00:00Z",
      "payment_method": "NON_DIRECT_DEBIT"
    },
    {
      "value_exc_vat": 35.5166,
      "value_inc_vat": 37.29243,
      "valid_from": "2022-11-01T00:00:00Z",
      "valid_to": "2023-03-31T23:00:00Z",
      "payment_method": "DIRECT_DEBIT"
    },
    {
      "value_exc_vat": 40.6283,
      "value_inc_vat": 42.659715,
      "valid_from": "2022-11-01T00:00:00Z",
      "valid_to": "2023-03-31T23:00:00Z",
      "payment_method": "NON_DIRECT_DEBIT"
    }
  ]
}```
@ryanw-mobile ryanw-mobile added the feature A new feature for the user, not a new feature for a build script. label May 30, 2024
@ryanw-mobile ryanw-mobile self-assigned this May 30, 2024
@ryanw-mobile ryanw-mobile changed the title Handling tariffs with different standing charge, (and over the time) Handling tariffs with different standing charge, (and over time) May 30, 2024
@ryanw-mobile ryanw-mobile changed the title Handling tariffs with different standing charge, (and over time) Usage Screen: Handling tariffs with different standing charge, (and over time) Jun 16, 2024
@ryanw-mobile
Copy link
Owner Author

This can be the final missing piece that blocks us from confidently circulating this app - the billing section we have to provide a real cost calculation under all filters.
Right now we can only get this accurate in half-hourly view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature for the user, not a new feature for a build script.
Projects
None yet
Development

No branches or pull requests

1 participant