You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-10-30 15:51:49

Maschik1234
Member
Registered: 2023-07-03
Posts: 26

Having some problems with contracts!

I would like to record my contracts in GLPI, but am having some problems doing so:

Contract term:

The service contract is concluded for a term of 3 years. The term of the service contract is extended for another year at a time, unless it has been terminated by the contract partner with a notice period of 3 months before the end of the respective service contract year.

My interpretation of the contract term:

The contract should therefore be created as follows:

Start Date: 2020-08-01
Initial contract period: 36 months (for the first 3 years, I would have specified the 36 months here)
Notice: 3 months (I would like to be notified 3 months before the end)
Contract renewal period: 12 months (after the 3 years, the contract will be renewed annually)
Renewal: Tacit

Problems:

In the initial contract period I now have an end date of 2026-08-01, although I would actually expect to have an end date after the first 3 years, which in this case is 2023-08-01, and then with the contract renewal period the contract is renewed by one year each time.

The notice field is also not working correctly. I entered 3 months there and now have a date of 2023-05-01, although if I had an end date of 2026-08-01, I would not expect to have a date of 2026-05-01 until again.

Question:

Am I not understanding the function of the fields correctly or is something being calculated incorrectly here?

Offline

#2 2023-10-31 15:10:39

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: Having some problems with contracts!

It looks like a bug.
The current expiration date calculation is:
BeginDate + InitialPeriod - NoticePeriod

Then, it adds the IntialPeriod period until the expiration date is the current date/time or later (so it is the next expiration).
It seems like this last part should use the renewal period instead.

Feel free to open a bug report on GitHub for this.
https://github.com/glpi-project/glpi/is … report.yml


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2023-11-02 11:36:07

Maschik1234
Member
Registered: 2023-07-03
Posts: 26

Re: Having some problems with contracts!

I already submitted this bug to Github, ticket #15893, but this was closed because of ticket #14703.

Offline

Board footer

Powered by FluxBB