The Order and Included Columns should be to fill mandatory

http://sourceforge.net/tracker/?func=detail&aid=2826384&group_id=176962&atid=879335
This commit is contained in:
vpj-cd 2009-07-24 06:07:38 +00:00
parent 051c3b8aa8
commit 073dfef2de
1 changed files with 13 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import java.util.ArrayList;
import java.util.Properties;
import java.util.logging.Level;
import org.adempiere.exceptions.AdempiereException;
import org.compiere.util.CLogger;
import org.compiere.util.DB;
@ -166,6 +167,18 @@ public class MTab extends X_AD_Tab
// UPDATE AD_Tab SET IsInsertRecord='N' WHERE IsInsertRecord='Y' AND IsReadOnly='Y'
if (isReadOnly() && isInsertRecord())
setIsInsertRecord(false);
if(isSortTab())
{
if(getAD_ColumnSortOrder_ID() == 0)
{
throw new AdempiereException("@FillMandatory@ @AD_ColumnSortOrder_ID@");
}
if(getAD_ColumnSortYesNo_ID() == 0)
{
throw new AdempiereException("@FillMandatory@ @AD_ColumnSortYesNo_ID@");
}
}
return true;
}