Start of ESM update

This commit is contained in:
Allan Carr
2024-07-24 08:54:29 -07:00
parent 58055fd1b3
commit e793402a79
14 changed files with 107 additions and 171 deletions

View File

@@ -1,18 +1,7 @@
import { Request, Response, NextFunction } from "express";
import { NextFunction, Request, Response } from "express";
export default function BillRequestValidator(req: Request, res: Response, next: NextFunction) {
const vendorid: string = (req.body.vendorid || "").trim();
const invoice_number: string = (req.body.invoice_number || "").trim();
const jobid: string = (req.body.jobid || "").trim();
// if (vendor === "") {
// res.status(400).json({ error: "No vendor name has been specified." });
// return;
// }
// if (invoice_number === "") {
// res.status(400).json({ error: "No invoice number has been specified." });
// return;
// }
if (jobid === "") {
res.status(400).json({ error: "No RO Number has been specified." });
return;