fixed date on import AGAIN

This commit is contained in:
Finn 2019-07-12 16:08:02 +01:00
parent 87c5da4a9a
commit a6b818cf89

View file

@ -49,7 +49,9 @@ sub _row_to_result {
time_zone => 'Europe/London'
);
my $paid_date = ( $row->{paid_date} ? $date_formatter->parse_datetime($row->{paid_date}) : DateTime->today );
my $paid_date = ( $row->{paid_date} ?
$date_formatter->parse_datetime($row->{paid_date}) :
$date_formatter->parse_datetime($row->{invoice_date}) );
my $gross_value = $row->{gross_amount};
$gross_value =~ s/,//g;