upd
This commit is contained in:
@ -420,6 +420,16 @@ exports.createMIGOPOSAPold = (req, res) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const row = poDetail.data[0];
|
const row = poDetail.data[0];
|
||||||
|
const existingMigo = String(row.migo || "").trim();
|
||||||
|
if (existingMigo && existingMigo !== "-" && existingMigo !== "000") {
|
||||||
|
apireshandler.success = false;
|
||||||
|
apireshandler.meta.code = 400;
|
||||||
|
apireshandler.meta.message =
|
||||||
|
"PO already has MIGO number: " + existingMigo;
|
||||||
|
poadapter.sendResponse(400, apireshandler, res);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const idxpr = row.idxpr ?? 0;
|
const idxpr = row.idxpr ?? 0;
|
||||||
|
|
||||||
const gm_code = "01";
|
const gm_code = "01";
|
||||||
|
|||||||
Reference in New Issue
Block a user