C4::Stats - Update Koha statistics (log)
The functions of this module deals with statistics table of Koha database.
Adds an entry to the statistics table in the Koha database, which acts as an activity log.
$params is an hashref whose expected keys are: branch : the branch where the transaction occurred type : the type of transaction (renew, issue, localuse, return, writeoff, payment itemnumber : the itemnumber of the item borrowernumber : the borrowernumber of the patron amount : the amount of the transaction other : sipmode itemtype : the type of the item ccode : the collection code of the item
type key is mandatory. For types used in C4::Circulation (renew,issue,localuse,return), the following other keys are mandatory: branch, borrowernumber, itemnumber, ccode, itemtype For types used in C4::Accounts (writeoff, payment), the following other keys are mandatory: branch, borrowernumber, itemnumber, ccode, itemtype If an optional key is not provided, the value '' is used for this key.
Returns undef if no
$param is given
Koha Development Team <http://koha-community.org/>