package BookPub::Import::Importer::BakerAndTaylor::Version8;

use strict;

use lib '/app/tools/common/lib';
use Common::Country;

use lib '/app/tools/bookpub/lib';

# This in turn inherits from
#   BookPub::Import::Importer::BakerAndTaylor::Version5
#   BookPub::Import::Importer::BISG::Version1
use base 'BookPub::Import::Importer::BakerAndTaylor::Version7';

sub _fieldMap {
    {
        currencyCode         => 'AB',
        rPriceType           => 'AA',
        countryCode          => 'Y',
        dateBegin            => 'E',
        rProductType         => 'G',
        rFormat              => 'G',
        isbn                 => 'K',
        rTitle               => 'N',
        rAuthor              => 'O',
        rUnits               => 'U',
        rSales               => 'S',
        rReturns             => 'T',
        rListPrice           => 'AR',
        rListPriceCurrency   => 'AB',
        rPurchasePrice       => 'Z',
        rDiscount            => 'AC',
        rRevenue             => 'AP',
        rComments            => 'G',
        rInstitution         => 'D',
        priceTypeQualifierID => 'G',
        rUnitPrice           => 'Z',
    };
}

# Don't inherit BISG's country code which gets it from the header
sub currencyCode { shift->_getByFieldName('currencyCode') }

# Don't use v7's _processHeader since we're not getting the currency from the header
sub _processHeader { }

1;
