protected virtual void Contact_RowPersisted(PXCache sender, PXRowPersistedEventArgs e)
        {
            Contact row = e.Row as Contact;

            if (row == null || e.TranStatus != PXTranStatus.Open)
            {
                return;
            }
            if (CRGrammProcess.PersistGrams(this, row))
            {
                row.DuplicateStatus = DuplicateStatusAttribute.NotValidated;
            }
        }
Пример #2
0
        protected virtual void Contact_RowPersisted(PXCache sender, PXRowPersistedEventArgs e)
        {
            Contact row = e.Row as Contact;

            if (row == null || e.TranStatus != PXTranStatus.Open)
            {
                return;
            }
            if (CRGrammProcess.PersistGrams(this, row) &&
                Setup.Current.ValidateContactDuplicatesOnEntry == true &&
                Object.Equals(sender.GetValue <Contact.duplicateStatus>(e.Row), sender.GetValueOriginal <Contact.duplicateStatus>(e.Row)))
            {
                row.DuplicateStatus = DuplicateStatusAttribute.NotValidated;
            }
        }