Write the procedure for inward order processing