<?xml version="1.0" encoding="utf-16"?><customize><COR_CUSTOM_FIELD U_RuleName="DOC:10178:Disallow Invoice with BaseType 23/17" U_Type="0" U_Action="0" U_Warning="N" U_WarningText="" U_WarningBox="N" U_WarningStatus="N" U_Active="N" U_FormTypeBasis="" U_ItemUIDBasis="" U_ColumnBasis="" U_FormType="133,60091" U_ItemUID="1" U_Column="" U_EventType="1" U_Before="Y" U_Mode="-1" U_Refresh="N" U_EasyFunctionRule="" U_Creator="" U_LastModified="7/27/2012 10:58:59 AM" U_LastModifiedBy="1" U_Permission="" U_ErrorBox="" U_ErrorStatus=""><U_Expression>Matrix mtr = Matrix.GetFromUID(pVal.Form, "38");for(int i = 0; i &lt; mtr.Rows.Count - 1; i++){	if(mtr.GetValue("43", i).ToString() == "17")	{		MessageBox.Show("Direct Copy from Sales Order to A/R Invoice or A/R Reserve Invoice is not allowed. Please book a Delivery first.", "OK");		return false;	}		if(mtr.GetValue("43", i).ToString() == "23")	{		MessageBox.Show("Direct Copy from Sales Quotation to A/R Invoice or A/R Reserve Invoice is not allowed. Please book Sales Order and Delivery first.", "OK");		return false;	}}return true;</U_Expression></COR_CUSTOM_FIELD></customize>