
Hi Stefan, On Sun, Jun 30, 2002 at 11:32:57AM +0200, Stefan Schmidt wrote:
I just tried to hack Date.pm to a new DateChecksum.pm (for an additional checksum appended to the regular TTN, like in STTS2). I did this, but in $HOME/var/log/procmail-2002-06.log there is a line like this: Undefined subroutine &Kernel::System::Ticket::Number::DateChecksum::GetTNByString called at /opt/OpenTRS/bin/..//Kernel/System/PostMaster.pm line 235, <STDIN> line 39. procmail: Non-zero exitcode (255) from "/opt/OpenTRS//bin/PostMaster.pl"
Do I have to register the new Ticket hook anywhere or did I just a stupid mistake during coding?
Register the module only in the Config.pm. The perl syntax of your DateChecksum.pm is the problem. Try `perl -cw DateChecksum.pm` .-) I attached the diff. ;-)
BTW2: Is there a specific reason, why the default TTN is smthn. like that: 10001? Why the leading '1'? I want to create TTN's like in STTS, rotating the TTN's on a daily basis via cron.
There is no reason. You can also rotate the TicketCounter.log via cron. The whole logic of new ticket numbers are in this module. Just take care that your module returns no existing ticket numbers. Example: If you want ticket numbers like `abc` you can do this with this module.
Stefan
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- Perfection is our goal, excellence will be tolerated. -- J. Yahl