package BookPub::Import::Importer::ReadCloud::Version3;

use strict;

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

sub rTaxUnitPrice {
    my $self          = shift;
    my $purchasePrice = $self->_getByFieldName('rPurchasePrice') || return;
    my $listPrice     = $self->_getByFieldName('rListPrice') || return;

    my $tax = $purchasePrice - $listPrice;

    return $tax;
}

sub units {
    my $self = shift;
    my $units = $self->_getByFieldName('rUnits') || return;

    return $units;
}

1;
