sql pagos pendientes pagados

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql pagos pendientes pagados相关的知识,希望对你有一定的参考价值。

SELECT ap.appointment_id as folio,
ap.amount as monto ,
CASE
    WHEN ap.status = 9 THEN "Viaje completado"
    WHEN ap.status = 5 THEN "cancelado conductor"
    WHEN ap.status = 4 THEN "cancelado pasajero"
    ELSE "No identificado"
END
as estatus_viaje,
pp.amount as pendiente,
pp.create_dt as fecha,
w.unique_id as unidad,
wt.type_name as tipo,
CASE
    WHEN pp.payment_type = 1 THEN "Tarjeta"
    WHEN pp.payment_type = 2 THEN "Wallet"
    ELSE "No identificado"
END
as "pagado con"
from appointment as ap inner JOIN pending_payment as pp on ap.appointment_id=pp.appointment_id
left join workplace w on ap.car_id= w.workplace_id
left join workplace_types wt on w.type_id = wt.type_id
 where pp.create_dt > '2019-05-27 00:00:00' AND pp.create_dt < '2019-06-2 23:59:59' and pp.status=1

以上是关于sql pagos pendientes pagados的主要内容,如果未能解决你的问题,请参考以下文章

sql 报告pendiente de pago completado contabilidad

PaGO-LOAM:基于地面优化的激光雷达里程计

javascript de pagos entrantes y esuncálculodeltiempo(eníías)

json Ejemplodeduoluolucióndeun pago usando el SDK para Java de MercadoPago

000Webhost 付款后的操作

KendoUI Grid + AngularJS:添加列模板