IDEMPIERE-704 The Min. value and Max. value validation of column is not working. Fixed regression for reversal of document.

This commit is contained in:
Heng Sin Low 2013-03-09 07:17:14 +08:00
parent 9be2050bff
commit f073540046
1 changed files with 1 additions and 1 deletions

View File

@ -785,7 +785,7 @@ public abstract class PO
//
if (value == null)
{
if (p_info.isColumnMandatory(index))
if (checkWritable && p_info.isColumnMandatory(index))
{
log.saveError("FillMandatory", ColumnName + " is mandatory.");
throw new IllegalArgumentException (ColumnName + " is mandatory.");