SELECT delivery_method, agency_id, address_id
FROM basket_defaults
SELECT v.code delivery_method, o.date_send, o.agency_id, o.address_id
FROM basket o
JOIN vn2008.Vistas v ON o.delivery_method_id = v.vista_id
CALL vn.agencyListForMethod(#date, #address, 'AGENCY')
CALL vn.agencyListForMethod(#date, #address, 'PICKUP')
ConfigureOrder