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

Create and list contracts #29

Closed
marien-probesys opened this issue Sep 28, 2022 · 0 comments
Closed

Create and list contracts #29

marien-probesys opened this issue Sep 28, 2022 · 0 comments
Assignees
Labels
topic: contracts All the stuff related to the contracts type: new Global features that aren't there yet

Comments

@marien-probesys
Copy link
Member

marien-probesys commented Sep 28, 2022

Estimation: 2d

User story

As a commercial,
I want to create a contract associated to a customer
So I can track the time spent for a customer and don't work more than what was in the contract.

Overview

The contracts are listed and created in the organizations.
The contracts are listed in the sub-organizations as well.

A contract has a name, a start and an end dates, and a number of hours. It also has private notes.

The contracts are listed in descending order of end date.

At the moment, the list shows the name, the dates and the number of hours + a status:

  • coming: start date is in the future
  • ongoing: current date is between start and end date
  • finished: end date is in the past

Technical

Entity

We need a new Contract entity:

  • name (string 255)
  • start_at (datetimetz, must be rounded to 00:00:00)
  • end_at (datetimetz, must be rounded to 23:59:59)
  • max_hours (int > 0)
  • notes (text)

Permissions

Three new permissions are required:

  • orga:see:contracts
  • orga:see:contracts:notes
  • orga:manage:contracts
@marien-probesys marien-probesys added this to the Version 0.5-dev milestone Mar 17, 2023
@marien-probesys marien-probesys changed the title Create a contract Create and list contracts Sep 13, 2023
@marien-probesys marien-probesys added topic: contracts All the stuff related to the contracts and removed topic: ticketing All the stuff related to the tickets labels Sep 13, 2023
@marien-probesys marien-probesys self-assigned this Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: contracts All the stuff related to the contracts type: new Global features that aren't there yet
Projects
None yet
Development

No branches or pull requests

1 participant