INV_OFF_HIRE_ON_HIRE_VALIDATION
Description: Limited to code that modifies or suppresses the off-hire on-hire process validation of unit holds in order to allow on-hiring of a unit by another shipping line.
Abstract Base Class: AbstractOffhireOnhireValidation
Interface: EOffhireOnhireValidation
Module: Inventory
Version Added: 2.2
Requires Code Extension Name or Name Pattern: Yes
Code Extension Name or Name Pattern: OffhireOnhireValidation
Where to Specify Code Extensions of this Type: N/A. N4 relies on the code extension name.
Code example
The following groovy code turns off Unit Hold validations by overriding the validateHolds method with an empty implementation.
/*
* Copyright (c) 2011 Navis LLC, Part of Cargotec Corporation, All Rights Reserved.
* $Id: $
*/
import com.navis.inventory.external.inventory.AbstractOffhireOnhireValidation;
public class OffhireOnhireValidation extends AbstractOffhireOnhireValidation
{
/*
In this example, we want to suppress Unit holds validation for Off-hire/On-hire transaction.
for this we override the method logic with empty implementation.
*/
public void validateHolds() {
}
}