Script always takes first condition
Content
Hi,
In Before Update when I use the below code always the first conditoin only executes
condition1 ;
if (isAttributeChanged('EstimatedTotal_c') && (EstimatedTotal_c <50000))
{
throw new oracle.jbo.ValidationException('VAT')
WorkflowFlag_c = 'PPB_DS_L50K_16'
}
condition 2;
if ((isAttributeChanged('EstimatedTotal_c') && (EstimatedTotal_c <50000))
&& (isAttributeChanged('DataAccessBySupplier_c') && (DataAccessBySupplier_c =='Y')))
{
throw new oracle.jbo.ValidationException('TECH')
WorkflowFlag_c = 'PPB_DS_L50K_146'
}
6