mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
lark push booking transactions
This commit is contained in:
@@ -14,6 +14,28 @@ return new class extends Migration
|
||||
t.type AS transaction_type,
|
||||
t.status AS transaction_status,
|
||||
t.bill_no AS transaction_bill_no,
|
||||
t.currency_rate AS transaction_currency_rate,
|
||||
t.service_charge AS transaction_service_charge,
|
||||
|
||||
-- Map currency_id to readable code
|
||||
CASE t.currency_id
|
||||
WHEN 1 THEN 'MYR'
|
||||
WHEN 2 THEN 'CNY'
|
||||
WHEN 3 THEN 'USD'
|
||||
ELSE 'UNKNOWN'
|
||||
END AS transaction_currency_code,
|
||||
|
||||
t.amount AS transaction_amount,
|
||||
|
||||
-- Map original_currency_id to readable code
|
||||
CASE t.original_currency_id
|
||||
WHEN 1 THEN 'MYR'
|
||||
WHEN 2 THEN 'CNY'
|
||||
WHEN 3 THEN 'USD'
|
||||
ELSE 'UNKNOWN'
|
||||
END AS transaction_original_currency_code,
|
||||
|
||||
t.original_amount AS transaction_original_amount,
|
||||
b.id AS booking_id,
|
||||
b.marking AS booking_marking,
|
||||
c.name AS company_name,
|
||||
|
||||
Reference in New Issue
Block a user