Created
September 18, 2015 13:33
-
-
Save solak/9094a6a68c52292f0048 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select | |
| bookings.id, | |
| host_total_including_fee, | |
| guest_total_in_host_currency, | |
| host_total, | |
| guest_fee_in_host_currency, | |
| host_fee, | |
| guest_total, | |
| guest_total_including_fee_without_voucher, | |
| host_total_including_fee_in_guest_currency, | |
| extra_guests_charge_in_host_currency, | |
| service_charge_in_host_currency, | |
| extra_guests_charge, | |
| service_charge, | |
| guest_nightly_rate_without_extra_charges_or_fees, | |
| nightly_rate_amount, | |
| weekly_rate_amount, | |
| gross_exchange_rate_fee_on_host_total_in_host_currency, | |
| bpd.subtotal_without_discount | |
| from bookings | |
| join booking_pricing_details as bpd on bpd.booking_id = bookings.id | |
| order by created_at desc limit 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment