]> git.koha-community.org Git - koha.git/commit
Bug 22784: Add a cronjob to archive suggestions given age or status criteria
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 14 Nov 2019 15:41:40 +0000 (16:41 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 14 Apr 2020 15:22:02 +0000 (16:22 +0100)
commitd6fc05891b5558fd5f2bb95c1fd200bcc43e2806
treed5302cc901e5d41ad57bab8cdc99d3b390b44563
parent2d2ffbd075c95eb465fcc32c53b19f11d67cb4b6
Bug 22784: Add a cronjob to archive suggestions given age or status criteria

In order to deal automatically with suggestions that need to be
archived, this cronjob will help to add the "archived" flag following
their age or status.

Test plan:
- Execute the script with the --help parameter and read the documentation.
- Does it make sense?
- Use it without the --confirm flag and try several combination

For instance you will want to archive suggestions that have been
rejected for more than a week:
  perl misc/cronjobs/archive_purchase_suggestions.pl
  --age-date-field=rejecteddate --age=weeks:1

or even suggestion that have been suggested for more than a year and
have a ORDERED status:
  perl misc/cronjobs/archive_purchase_suggestions.pl
  --age-date-field=suggesteddate --age=years:1 --status=ORDERED

- Use it with the --confirm flag and make sure the suggestions have been
archived.

Sponsored-by: BULAC - http://www.bulac.fr/
Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
misc/cronjobs/archive_purchase_suggestions.pl [new file with mode: 0755]