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

Cleanup WorkflowLevel2 model by removing unused fields #957

Open
glind opened this issue Jan 19, 2018 · 0 comments
Open

Cleanup WorkflowLevel2 model by removing unused fields #957

glind opened this issue Jan 19, 2018 · 0 comments

Comments

@glind
Copy link
Member

glind commented Jan 19, 2018

Confirm they are not in use in the Front End (TolaDatav2) and remove the following fields from the model Workflow.WorkflowLevel2

date_of_request = models.DateTimeField("Date of Request", blank=True, null=True)
staff_responsible = models.ForeignKey(TolaUser, on_delete=models.SET_NULL, blank=True, null=True)
partners = models.ForeignKey(Partner, blank=True, null=True, verbose_name="Partners", on_delete=models.SET_NULL)
total_estimated_budget = models.DecimalField("Total Project Budget", decimal_places=2, max_digits=12, help_text="In USD", default=Decimal("0.00"), blank=True)
local_currency = models.ForeignKey(Currency, null=True, blank=True, related_name="local_project", on_delete=models.SET_NULL)
donor_currency = models.ForeignKey(Currency, null=True, blank=True, related_name="donor_project", on_delete=models.SET_NULL)
actual_start_date = models.DateTimeField(blank=True, null=True)
actual_end_date = models.DateTimeField(blank=True, null=True)
actual_duration = models.CharField(max_length=255, blank=True, null=True)
on_time = models.BooleanField(default=True)
no_explanation = models.TextField("If not on time explain delay", blank=True, null=True)
actual_cost = models.DecimalField("Actual Cost", decimal_places=2, max_digits=20, default=Decimal("0.00"), blank=True, help_text="What was the actual final cost? This should match any financial documentation you have in the file. It should be completely documented and verifiable by finance and any potential audit")
actual_cost_date = models.DateTimeField(blank=True, null=True)
budget_variance = models.CharField("Budget versus Actual variance", blank=True, null=True, max_length=255)
explanation_of_variance = models.CharField("Explanation of variance", blank=True, null=True, max_length=255)
total_cost = models.DecimalField("Estimated Budget for Organization", decimal_places=2, max_digits=12, help_text="In USD", default=Decimal("0.00"), blank=True)
agency_cost = models.DecimalField("Actual Cost for Organization", decimal_places=2, max_digits=12, help_text="In USD", default=Decimal("0.00"), blank=True)
community_handover = models.BooleanField("CommunityHandover/Sustainability Maintenance Plan", help_text='Check box if it was completed', default=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant