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

TP2000-1537 Bulk create QuotaDefinitionPeriods #1320

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

CPrich905
Copy link
Collaborator

@CPrich905 CPrich905 commented Nov 11, 2024

##TODO:

  • investigate cleaning up the serialize/deserialize functions to align with the duplicator functions -- they can't. One serializes a QuotaDefinition object, the other serializes unserialized data within an dictionary and returns a fully serialized dict.
  • confirm whether we need to keep the description box
  • confirm where this journey should start from. We enter the quota order number in the first page, so could be from workbasket home page or from the order number (this won't auto populate at the moment)
  • add tests for wizard forms/views

future features:

  • increment/decrement for the volumes

TP2000-1537 Bulk create QuotaDefinitionPeriods

Why

  • Currently QuotaDefinitionPeriods can only be created one by one
  • A Quota may cover a significant period of time and creating definition periods to cover the duration of the quota may require a significant amount of repetitions through this journey.

What

This PR utilises a Django form wizard to bulk create QuotaDefinitionPeriods.
There are four stages to the journey:

  1. start, outlining the information the users will need to have available
  2. enter initial information. This collects the QuotaOrderNumber the QuotaDefinitionPeriods are to be built with, the number of definition periods to be created, and the frequency with which they will be duplicated (Once, Annually, Quarterly, Custom)
  3. definition information. This is a replica of the current create QuotaDefinitionPeriod form.
  4. review page. Here, the user can update any details that require changing on individual QuotaDefinitionPeriods. Once they are happy with the information here, the user clicks submit and the QuotaDefinitionPeriods are created and the user is taken to a standard success page.

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

Successfully merging this pull request may close these issues.

1 participant