package BookPub::Import::Importer::DawsonBooks::Version3;

use strict;

use Data::Dumper;

use lib '/app/tools/common/lib';
use Common::Date;
use Common::Log;

use lib '/app/tools/bookpub/lib';
use base 'BookPub::Import::Importer::DawsonBooks::Version1';

sub _fieldMap {
    {
        # Header
        currencyCode => 'B2',

        # Data
        dateBegin            => 'C',
        dateEnd              => 'C',
        purchaseType         => 'N',
        rAuthor              => 'M',
        rTitle               => 'L',
        rIsbn13              => 'J',
        countryCode          => 'T',
        rUnits               => 'F',
        rListPrice           => 'O',
        rListPriceCurrency   => 'Q',
        rDiscount            => 'S',
        rRevenue             => 'R',
        rDuration            => 'N',
        rTransactionCategory => 'N',
    };
}

sub _unverifiedFieldMap {
    {

        costPrice => 'P',
    };
}

# override the parent class fixed country code
sub countryCode { shift->_getByFieldName('countryCode') }

1;
