package com.islandpacific.gui.server.customDataSource;

import java.util.HashMap;
import java.util.Map;

import com.islandpacific.gui.client.IslandPacificDSConstants;
import com.isomorphic.datasource.DSRequest;
import com.isomorphic.datasource.DSResponse;
import com.isomorphic.datasource.DataSource;
import com.isomorphic.datasource.Validator;
import com.isomorphic.log.Logger;
import com.isomorphic.util.DataTools;

/**
 * Validate an ISBN field entry
 * @author lgorlin
 *
 */

public class approvePoValidatorDMI {

    @SuppressWarnings("unchecked")
	public boolean condition(Object value, Validator validator,    
                             String fieldName, Map record, DataSource ds)   
        throws Exception    
    {   
		validator.addErrorMessageVariable("ErrorMessage", "PO Not Approved");
        return false;   
    }   

}
