#------------------------------------------------------------
# Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#------------------------------------------------------------
package RPS::Mechanical::UK::Job::CreateMcpsPDFStatement;

use strict;
use warnings;
use Sys::Hostname;

use lib '/app/tools/common/lib';
use Common::Assert;
use Common::RSApp;

use lib '/app/tools/rps/lib';
use RPS::Config;

use lib '/app/tools/job/lib';
use Job::Job;

use base 'Job::Job';

use constant kJobClass => 'CreatePDFStatements';


sub _generateCommandLine
{
    my ($self) = @_;

    my $statementID = $self->getCommandLineArg('statementID');
    assert($statementID);

    my $filePath = $self->getCommandLineArg('filePath');
    assert($filePath);    

    my $clientID = $self->clientID();


    my $config = RPS::Config->new();
    my $scriptPath = $config->get('statement_script_dir');

    my $commandLine = "nice $scriptPath/createMcpsStatementPDF.pl -c $clientID -s $statementID -p $filePath";

    return $commandLine;
}

sub _defaultClass       { return 'CreateStatement'; }
sub _defaultSubclass    { return 'McpsStatementPDF'; }

###
1;#
###

