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