From 04a8186b2af87691a1a8f230fe1d8f45b488a5c3 Mon Sep 17 00:00:00 2001 From: Finn Date: Fri, 12 Jul 2019 20:46:39 +0100 Subject: [PATCH] Added meta data to transactions --- lib/Pear/LocalLoop/Controller/Api/Transactions.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Pear/LocalLoop/Controller/Api/Transactions.pm b/lib/Pear/LocalLoop/Controller/Api/Transactions.pm index 84bb0da..93d69f4 100644 --- a/lib/Pear/LocalLoop/Controller/Api/Transactions.pm +++ b/lib/Pear/LocalLoop/Controller/Api/Transactions.pm @@ -55,6 +55,9 @@ 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, }} $transactions->all );