Change RO number to jobid.

This commit is contained in:
Patrick Fic
2022-05-04 18:13:21 -07:00
parent 05a8c90f03
commit 7754dc4653
10 changed files with 40 additions and 36 deletions

View File

@@ -7,7 +7,7 @@ export default function BillRequestValidator(
) {
const vendor: string = (req.body.vendor || "").trim();
const invoice_number: string = (req.body.invoice_number || "").trim();
const ro_number: string = (req.body.ro_number || "").trim();
const jobid: string = (req.body.jobid || "").trim();
// if (vendor === "") {
// res.status(400).json({ error: "No vendor name has been specified." });
@@ -17,7 +17,7 @@ export default function BillRequestValidator(
// res.status(400).json({ error: "No invoice number has been specified." });
// return;
// }
if (ro_number === "") {
if (jobid === "") {
res.status(400).json({ error: "No RO Number has been specified." });
return;
} else {