upper in payments

This commit is contained in:
Pablo Martin 2024-06-18 13:09:45 +02:00
parent 662c7b8ba8
commit c051831d6d

View file

@ -12,7 +12,12 @@ with
cast({{ adapter.quote("RefundDate") }} as date) as refunded_date_utc,
{{ adapter.quote("CreatedDate") }} as created_at_utc,
cast({{ adapter.quote("CreatedDate") }} as date) as created_date_utc,
{{ adapter.quote("CurrencyIso") }} as currency,
-- The field in SQL Server is this funny case insensitive shit that is
-- supposed to not be case sensitive due to the db collation but somehow
-- does store different cases. There is one pesky record where EUR is
-- stored as Eur. I placed this upper to save us from this and future
-- weird ones.
upper({{ adapter.quote("CurrencyIso") }}) as currency,
{{ adapter.quote("PaymentDate") }} as paid_at_utc,
cast({{ adapter.quote("PaymentDate") }} as date) as paid_date_utc,
{{ adapter.quote("UpdatedDate") }} as updated_at_utc,