Fix for FILE_TRANSMISSION not reporting OK status.

This commit is contained in:
Infineon\Mitchem
2024-12-05 09:17:52 -07:00
parent 7cc861619f
commit 53c9125d73

View File

@ -1818,6 +1818,8 @@ SendTechnical:
If Error_Services('HasError') then
ErrorMsg = Error_Services('GetMessage')
Shipment_Services('SetMONACritical', 'FILE_TRANSMISSION', ErrorMsg)
end else
Shipment_Services('ClearMONACritical', 'FILE_TRANSMISSION')
end
end else
LoggingErrMsg = 'Unable to send CSV COA via FTP for customer ' : CustNo : '. Shipment #': ShipNo :'. File was not found in the expected location'
@ -1841,6 +1843,8 @@ SendTechnical:
If Error_Services('HasError') then
ErrorMsg = Error_Services('GetMessage')
Shipment_Services('SetMONACritical', 'FILE_TRANSMISSION', ErrorMsg)
end else
Shipment_Services('ClearMONACritical', 'FILE_TRANSMISSION')
end
end else
LoggingErrMsg = 'Unable to send CSV COA CDS via FTP for customer ' : CustNo : '. Shipment #': ShipNo :'. File was not found in the expected location'
@ -1901,6 +1905,8 @@ SendTechnical:
successful = RTI_OS_Directory("CREATE", CustPath)
If successful NE True$ then
null
end else
Shipment_Services('ClearMONACritical', 'FILE_TRANSMISSION')
end
end
DosTable = Export_IR(ShipNo, AutoFlag, CustPath)
@ -1920,6 +1926,8 @@ SendTechnical:
If Error_Services('HasError') then
ErrorMsg = Error_Services('GetMessage')
Shipment_Services('SetMONACritical', 'FILE_TRANSMISSION', ErrorMsg)
end else
Shipment_Services('ClearMONACritical', 'FILE_TRANSMISSION')
end
end else
LoggingErrMsg = 'Unable to send CSV COA via FTP for customer ' : CustNo : '. Shipment #': ShipNo :'. File was not found in the expected location'
@ -1985,6 +1993,8 @@ SendTechnical:
If Error_Services('HasError') then
ErrorMsg = Error_Services('GetMessage')
Shipment_Services('SetMONACritical', 'FILE_TRANSMISSION', ErrorMsg)
end else
Shipment_Services('ClearMONACritical', 'FILE_TRANSMISSION')
end
end else
LoggingErrMsg = 'Unable to send CSV COA via FTP for customer ' : CustNo : '. Shipment #': ShipNo :'. File was not found in the expected location'
@ -2065,6 +2075,8 @@ SendTechnical:
If Error_Services('HasError') then
ErrorMsg = Error_Services('GetMessage')
Shipment_Services('SetMONACritical', 'FILE_TRANSMISSION', ErrorMsg)
end else
Shipment_Services('ClearMONACritical', 'FILE_TRANSMISSION')
end
end else
LoggingErrMsg = 'Unable to send CSV COA via FTP for customer ' : CustNo : '. Shipment #': ShipNo :'. File was not found in the expected location'
@ -2213,3 +2225,4 @@ RETURN