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

Add new lease #108

Open
nicolebudiman opened this issue Mar 13, 2020 · 0 comments
Open

Add new lease #108

nicolebudiman opened this issue Mar 13, 2020 · 0 comments

Comments

@nicolebudiman
Copy link
Contributor

nicolebudiman commented Mar 13, 2020

As an admin or a manager,
I should be able to create a new lease
so that I can assign occupant to the correct lease.

Acceptance Criteria
Given that I click on a particular Apartment from the Homepage and view the Apartment Profile,
When I click on Add New Lease,
Then, I will be able to enter the lease start date, end date and monthly rent of the new lease.

Given that I leave any of the fields blank,
When I try to submit,
Then, I will be able to see a warning message that a certain field is blank.

Given that the end date I entered is before or same as the start date,
When I try to submit,
Then, I will be able to see a warning message that lease end date should be after lease start date.

Given that the monthly rate I entered is negative,
When I try to submit,
Then, I will be able to see a warning message that the monthly rate should not be negative.

Given that there is an existing lease of which dates overlap with the new lease
When I try to submit any valid change,
Then I will be able to see a warning message that there is a current existing lease with overlapping dates.

As a guest,
I should not be able to add any new lease
so that the data is not added without the right authorisation

Acceptance Criteria
Given that I click on a particular Apartment from the Homepage,
When I view the Apartment Profile
Then, I should not be able to see any link to add a new lease

To confirm:

  1. Does apartment status matter?
@nicolebudiman nicolebudiman changed the title Add new lease: Add new lease Mar 13, 2020
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