Merge pull request #869 from ubavic/fix_transactions_sql
fix: no number showing for each customer under transactions
This commit is contained in:
commit
834b543e41
1 changed files with 2 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ function batch (
|
||||||
c.id_card_data_number AS customer_id_card_data_number,
|
c.id_card_data_number AS customer_id_card_data_number,
|
||||||
c.id_card_data_expiration AS customer_id_card_data_expiration,
|
c.id_card_data_expiration AS customer_id_card_data_expiration,
|
||||||
c.id_card_data AS customer_id_card_data,
|
c.id_card_data AS customer_id_card_data,
|
||||||
concat(c.id_card_data::json->>'firstName', ' ', c.id_card_data::json->>'lastName') AS customer_name,
|
array_to_string(array[c.id_card_data::json->>'firstName', c.id_card_data::json->>'lastName'], ' ') AS customer_name,
|
||||||
c.front_camera_path AS customer_front_camera_path,
|
c.front_camera_path AS customer_front_camera_path,
|
||||||
c.id_card_photo_path AS customer_id_card_photo_path,
|
c.id_card_photo_path AS customer_id_card_photo_path,
|
||||||
((NOT txs.send_confirmed) AND (txs.created <= now() - interval $1)) AS expired
|
((NOT txs.send_confirmed) AND (txs.created <= now() - interval $1)) AS expired
|
||||||
|
|
@ -73,7 +73,7 @@ function batch (
|
||||||
c.id_card_data_number AS customer_id_card_data_number,
|
c.id_card_data_number AS customer_id_card_data_number,
|
||||||
c.id_card_data_expiration AS customer_id_card_data_expiration,
|
c.id_card_data_expiration AS customer_id_card_data_expiration,
|
||||||
c.id_card_data AS customer_id_card_data,
|
c.id_card_data AS customer_id_card_data,
|
||||||
concat(c.id_card_data::json->>'firstName', ' ', c.id_card_data::json->>'lastName') AS customer_name,
|
array_to_string(array[c.id_card_data::json->>'firstName', c.id_card_data::json->>'lastName'], ' ') AS customer_name,
|
||||||
c.front_camera_path AS customer_front_camera_path,
|
c.front_camera_path AS customer_front_camera_path,
|
||||||
c.id_card_photo_path AS customer_id_card_photo_path,
|
c.id_card_photo_path AS customer_id_card_photo_path,
|
||||||
(extract(epoch FROM (now() - greatest(txs.created, txs.confirmed_at))) * 1000) >= $1 AS expired
|
(extract(epoch FROM (now() - greatest(txs.created, txs.confirmed_at))) * 1000) >= $1 AS expired
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue