clerk orders function