if (!trackNum.equals("0")) {
req.setAttribute(Util.ATTR_RESULTS, "The Stock Order has successfully been sent to the Supplier. Tracking number is " + trackNum);
// Save the returned Supplier Order ID with the back order. This Supplier Order ID (or tracking number) is used to check the order status.
backOrderStock.setSupplierOrderID(backOrderID, trackNum);
} else {
throw new NoSupplierException("Sending the Stock Order to the Supplier has failed.");
}
} else {
throw new NoSupplierException("Sending the Stock Order to the Supplier has failed.");
//logger.debug("AdminController.performBackOrder() - trackNum returned from Supplier is null. Ignoring trackNum.");
//req.setAttribute(Util.ATTR_RESULTS, "The Stock Order has successfully been sent to the Supplier. Tracking number is unknown");
}
} catch (NoSupplierException e) {
// Sending the Stock Order to the Supplier has failed.