Contents tagged with CROpportunity

  • Property from CROpportunity is not loaded

    Hello everybody,

    today I want to leave short note on issue with CROpportunity DAC class.

    For quite a few times I've noticed that someone adds field to CROpportunity, but later notices that field is lost either on moment of loading from database, or lost during persisting record to database.

    Reason for such weirdness is that starting from some Acumatica version CROpportunity got following declaration:

    [System.SerializableAttribute()]

    [PXCacheName(Messages.Opportunity)]

    [PXPrimaryGraph(typeof(OpportunityMaint))]

    [CREmailContactsView(typeof(Select2<Contact,

    LeftJoin<BAccount, On<BAccount.bAccountID, Equal<Contact.bAccountID>>>,

    Where2<Where<Optional<CROpportunity.bAccountID>, … more