857 extend order customers lena

for better readability let's move this inline function into a separate function.