-- Documentos de venta SELECT vts.*, rec.Invoice_Due_Date, rec.Payment_Date FROM view_ventas vts LEFT JOIN view_ventas_con_recaudo rec USING (Branch_Office, Invoice_No)