fixed date on import AGAIN
This commit is contained in:
parent
275b9cef46
commit
ee4e5a868c
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Reference in a new issue