Fix the issues when generate material requisition orders