Hi!
You can use the following query:
select
ai.uuid ai_uuid, ai.creation ai_creation, ai.last_modified ai_last_modified, ai.final_price_cts ai_final_price_cts, ai.currency_code ai_currency_code, ai.vat_cts ai_vat_cts, ai.discount_cts ai_discount_cts,
tr.id tr_uuid, tr.first_name tr_first_name, tr.last_name tr_last_name, tr.email_address tr_email_address,
asv.service_type as_type, asd.value as_title
from additional_service_item ai
join additional_service asv on ai.additional_service_id_fk = asv.id
join tickets_reservation tr on ai.tickets_reservation_uuid = tr.id
join additional_service_description asd on ai.additional_service_id_fk = asd.additional_service_id_fk
where ai.event_id_fk = :eventId
and asv.service_type = :additionalServiceType
and asd.type = 'TITLE'
and asd.locale = :locale
where:
- :eventId is the id of your event, as found in the event table
- :additionalServiceType is 'DONATION' if you want to extract donations, 'SUPPLEMENT' for other additional options
- :locale is the event's language code ('en', 'it', 'de', 'fr' and so on)
Please note that all the prices are persisted as integers, for maximum flexibility.
If your currency supports fractions (most of the currencies support 2 decimal digits) you have to divide by 10^number_of_digits in order to have the amount paid by the customer.
In other words, if your currency is USD and the ai_final_price_cts is 1000, the amount paid by the customer would be 1000 / 100 => USD 10.00
Thanks for creating the issue. The new version will be released asap, stay tuned!
Celestino