Tracking ID
Posted: Mon Apr 23, 2012 8:54 pm
Hi,
I am trying to edit the way HESK generates my Tracking ID's.
I want it to be YYYY-MM-DD-001, where the first ticket created in a day is 001, then each subsequent ticket created that day is increased by one.
Example,
First tracking ID of today would be 2012-04-23-001, throughout the day we created 4 tickets, so the last Tracking ID of the day would be 2012-04-23-004
Here is what I have so far.
I am trying to edit the way HESK generates my Tracking ID's.
I want it to be YYYY-MM-DD-001, where the first ticket created in a day is 001, then each subsequent ticket created that day is increased by one.
Example,
First tracking ID of today would be 2012-04-23-001, throughout the day we created 4 tickets, so the last Tracking ID of the day would be 2012-04-23-004
Here is what I have so far.
Code: Select all
/* Generate the ID */
$trackingID = '';
$trackingID .= date(Y);
$trackingID .= '-';
$trackingID .= date(m);
$trackingID .= '-';
$trackingID .= date(d);
$trackingID .= '-';
$trackingID .= ????;
$trackingID .= ????;
$trackingID .= ????;