package RPS::Import::ADA::v11;

use strict;


use lib '/app/tools/common/lib';
use Common::Util qw(normalize_date normalize_upc);
use Date::Calc qw(Days_in_Month);

use lib '/app/tools/data_classes/lib';

use lib '/app/tools/rps/lib';
use RPS::File::Sale;

use base 'RPS::Import::ADA::ADABase';

# NB: non-standard _fieldMap; need to override _importLines
sub _fieldMap {
    {
        'digital' => {
            date_row        => 1,
            date_col        => 0,
            
            label           => 1,
            format_type     => 3,
            serviceName     => 4,
            upc             => 5,
            clientProductID => 6,            
            productTypeCode => 7,
            artistName      => 8,
            title           => 9,
            units           => 12,
            price           => 14,
        },
        'streams' => {
            date_row        => 1,
            date_col        => 0,
            
            label           => 1,
            format_type     => 3,
            serviceName     => 4,
            upc             => 5,
            clientProductID => 6,            
            productTypeCode => 7,
            artistName      => 8,
            title           => 9,
            units           => 11,
            price           => 13,
        },
        'wireless' => {
            date_row        => 1,
            date_col        => 0,
            
            label           => 1,
            format_type     => 3,
            serviceName     => 4,
            upc             => 5,
            clientProductID => 6,            
            productTypeCode => 7,
            artistName      => 8,
            title           => 9,
            units           => 12,
            price           => 14,
        },
        'wmi' => {
            date_row        => 1,
            date_col        => 0,

            label           => 1,
            format_type     => 3,
            serviceName     => 4,
            country_code    => 5, 
            artistName      => 6,
            title           => 7,                       
            clientProductID => 8,            
            productTypeCode => 9,
            units           => 12,
            price           => 14,
        },
    }
}

###
1;# Play nicely.
###
