Fix meta transaction undef error
This commit is contained in:
parent
7d862290d3
commit
39aa2d2083
1 changed files with 10 additions and 3 deletions
|
@ -55,9 +55,16 @@ sub post_transaction_list_purchases {
|
|||
seller => $_->seller->name,
|
||||
value => $_->value / 100000,
|
||||
purchase_time => $c->format_iso_datetime($_->purchase_time),
|
||||
net_value => $_->meta->net_value / 100000,
|
||||
sales_tax_value => $_->meta->sales_tax_value / 100000,
|
||||
gross_value => $_->meta->gross_value / 100000,
|
||||
( $_->meta ? (
|
||||
net_value => $_->meta->net_value / 100000,
|
||||
sales_tax_value => $_->meta->sales_tax_value / 100000,
|
||||
gross_value => $_->meta->gross_value / 100000,
|
||||
) : (
|
||||
net_value => undef,
|
||||
sales_tax_value => undef,
|
||||
gross_value => undef,
|
||||
)),
|
||||
|
||||
}} $transactions->all
|
||||
);
|
||||
|
||||
|
|
Reference in a new issue