#---------------------------------------------------------------
# ____                   _ _         ____  _
#|  _ \ ___  _   _  __ _| | |_ _   _/ ___|| |__   __ _ _ __ ___
#| |_) / _ \| | | |/ _` | | __| | | \___ \| '_ \ / _` | '__/ _ \
#|  _ < (_) | |_| | (_| | | |_| |_| |___) | | | | (_| | | |  __/
#|_| \_\___/ \__, |\__,_|_|\__|\__, |____/|_| |_|\__,_|_|  \___|
#            |___/             |___/
#
# Copyright (C) 2009 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#---------------------------------------------------------------
package BookPub::Sale::Report::Exceptions::AllFiles;
use strict;
use warnings;

use File::Path;

use lib '/app/tools/common/lib';
use lib '/app/tools/bookpub/lib';
use BookPub::DB::Item::Service;
use BookPub::Config;
use BookPub::DB::Item::Sale::AllExceptionsReport;
use Common::Util;
use Common::Assert;
use Common::Client;

use base 'BookPub::Sale::Report::Exceptions';

sub fileName {
    my ($self) = @_;
    my $client = Common::Client::Current();
    return $client->ClientNameClean() . '_All_Exceptions.tsv';
}

sub excelFileName {
    my ($self) = @_;
    return 'AllExceptions.xls';
}

sub _getSales {
    my ($self) = @_;
    return BookPub::DB::Item::Sale::AllExceptionsReport->ReportQuery();
}

1;
