[FIX] 'purchase' get id by xml_id