fixed date on import AGAIN

This commit is contained in:
Finn 2019-07-12 16:08:02 +01:00
parent 275b9cef46
commit ee4e5a868c
No known key found for this signature in database
GPG key ID: 7455B4B17685B598

View file

@ -49,7 +49,9 @@ sub _row_to_result {
time_zone => 'Europe/London' 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}; my $gross_value = $row->{gross_amount};
$gross_value =~ s/,//g; $gross_value =~ s/,//g;