modules/purchaseOrderApprovals/handlers/post/doCreatePurchaseOrder.js
Function handler
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function handler(request, response) {
const user = request.session
.purchaseOrderApprovalUser;
if (user.approvalMax <= 0) {
response.json({