my $parser = new DateTime::Format::Natural( 'time_zone' => 'local' );
sub parsedt {
my ($dt,$min,$max) = (shift,shift,shift);
my $parser = new DateTime::Format::Natural( 'time_zone' => 'local' );
sub parsedt {
my ($dt,$min,$max) = (shift,shift,shift);
return $epoch->epoch
if ($parser->success && $epoch->epoch >= $min && $epoch->epoch <= $max);
fatal("invalid date $dt (min=$min, max=$max)");
return $epoch->epoch
if ($parser->success && $epoch->epoch >= $min && $epoch->epoch <= $max);
fatal("invalid date $dt (min=$min, max=$max)");
$o = $did_order{$vendor_order_id};
# warn "$submitted $confirmed $received $vendor_order_id".Dumper($o);
fatal("vendor order #$vendor_order_id - order data differs from one item to another")
$o = $did_order{$vendor_order_id};
# warn "$submitted $confirmed $received $vendor_order_id".Dumper($o);
fatal("vendor order #$vendor_order_id - order data differs from one item to another")
# fatal("customer mismatch for vendor order #$vendor_order_id")
# unless ( ($o->custnum && $cust{'custnum'}
# && ($o->custnum == $cust{'custnum'}
# fatal("customer mismatch for vendor order #$vendor_order_id")
# unless ( ($o->custnum && $cust{'custnum'}
# && ($o->custnum == $cust{'custnum'}