Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To me it now seems to work correctly and has additional features. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

afresh1
Copy link

@afresh1 afresh1 commented Mar 16, 2011

I am working at the Billing ActivityReport and found it would be much handier to be able to pass in an RT::Tickets object to RelevantTxns.

I also found that start and end didn't work like expected, so I added some code to fix that.

Allow either a single ticket or an RT::Tickets object and return an RT::Transactions object for all relevent tickets
my $start = $date->AsString( Format => 'sql' );

$date->Set( Format => 'unknown', Value => $args{end} );
$date->AddSeconds(86399) if $date->AsString =~ /\b00:00:00\b/;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes to the end of the day instead of the beginning. Means it can match what happened on $end day, not just the day before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant