<<

NAME

archive_purchase_suggestions.pl - Archive purchase suggestions given their age and status

SYNOPSIS

archive_purchase_suggestions.pl [-h|--help] [-v|--verbose] [-c|--confirm] [--age=AGE] [--age-date-field=DATE_FIELD] [--status=STATUS]

OPTIONS

-h|--help

Print a brief help message

-c|--confirm

This flag must be provided in order for the script to actually archive purchase suggestions. If it is not supplied, the script will only report on the suggestions it would have archived.

--age

It must contain an integer representing the number of days elapsed since the suggestions has been modified. You can use it along with --age-date-field to specify the database column you want to apply this number.

You can also provide a number of hours, days, weeks, months or years. Like --age=months:1 to archive purchase suggestions older than a month.

--age-date-field

You can specify one of the date fields of suggestions: suggesteddate, manageddate, accepteddate, rejecteddate or lastmodificationdate. Default is manageddate.

--status

It must be one of the 6 default statuses (ASKED, ACCEPTED, CHECKED, REJECTED, ORDERED or AVAILABLE), or one define in the SUGGEST_STATUS authorized value's category.

Can be passed several times.

-v|--verbose

Verbose mode.

AUTHOR

Jonathan Druart <jonathan.druart@bugs.koha-community.org>

LICENSE

This file is part of Koha.

Koha is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

Koha is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Koha; if not, see <http://www.gnu.org/licenses>.

<<