Modified API to create a new test wafer lot to use the new generic routine CreateNewLot

This commit is contained in:
Infineon\Ouellette 2024-11-11 08:21:13 -07:00
parent 507106971b
commit 8282b5a7d4

View File

@ -68,7 +68,6 @@ API createnewtestwaferlot.POST
OIWizardID = Field(Cookie, '=', 2)
end
Next Cookie
ValidSession = OI_Wizard_Services('ValidateSession', OIWizardID)
If ValidSession then
// Check if payload has the required information to create a react mode change record
@ -91,7 +90,7 @@ API createnewtestwaferlot.POST
Username = Xlate('OI_WIZARD', OIWizardID, OI_WIZARD.EMPLOYEE_ID$, 'X')
PrinterID = 'WEB'
SRP_JSON(TWLotObject, 'Release')
LotId = Lot_Services('CreateNewTestWaferLot', LotType, ProdName, LotQty, VendorPartNo, VendorLotNo, VendorCode, Username, PrinterID)
LotId = Lot_Services('CreateNewLot', LotType, ProdName, LotQty, VendorPartNo, VendorLotNo, VendorCode, Username, PrinterID)
If Error_Services('NoError') And RowExists('LOT', LotId) then
Message = 'Create TW Lot Successful: New Lot ID - ' : LotId
GoSub CreateHALItem