<<

NAME

acq_cancel_obsolete_orders.pl - Script for cancelling obsolete orders

SYNOPSIS

    # Help
    misc/maintenance/acq_cancel_obsolete_orders.pl --help

    # Count obsolete orders (with/without age)
    misc/maintenance/acq_cancel_obsolete_orders.pl
    misc/maintenance/acq_cancel_obsolete_orders.pl --age 365

    # Cancel obsolete orders (with/without age)
    misc/maintenance/acq_cancel_obsolete_orders.pl -c
    misc/maintenance/acq_cancel_obsolete_orders.pl -c --age 365

DESCRIPTION

    Obsolete order lines (in table aqorders) are defined here as:

    [1] Biblionumber is null but received < ordered and not cancelled.
    [2] Status 'cancelled' but no cancellation date.
    [3] Filled cancellation date, but status is not 'cancelled'.

    This script may count those orders or cancel them.

    Optionally, you may pass an age in DAYS to limit the
    selected set to records with an older entrydate.

OPTIONS

-h|--help
    Print a brief help message
-c|--confirm
    Confirm to cancel obsolete orders. If you do not confirm, the script
    only counts the number of obsolete orders.
--age
    Optional number of days. Only look at orders older than the given
    number.

<<