mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Merge branch 'lark-push-booking-transactions' of https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0 into vapor/staging
This commit is contained in:
@@ -58,6 +58,12 @@ class LarkPushBookingTransactionsModuleCommand extends Command
|
||||
'transaction_type' => $transactionTypeM[$b->transaction_type],
|
||||
'transaction_status' => $statusM[$b->transaction_status],
|
||||
'transaction_bill_no' => $b->transaction_bill_no,
|
||||
'transaction_currency_rate' => $b->transaction_currency_rate,
|
||||
'transaction_service_charge' => $b->transaction_service_charge,
|
||||
'transaction_currency_code' => $b->transaction_currency_code,
|
||||
'transaction_amount' => $b->transaction_amount,
|
||||
'transaction_original_currency_code' => $b->transaction_original_currency_code,
|
||||
'transaction_original_amount' => $b->transaction_original_amount,
|
||||
'booking_id' => $b->booking_id,
|
||||
'booking_marking' => $b->booking_marking,
|
||||
'company_name' => $b->company_name,
|
||||
|
||||
@@ -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