public override void CounterpartyValueInput(Sungero.Docflow.Client.AccountingDocumentBaseCounterpartyValueInputEventArgs e)
 {
     base.CounterpartyValueInput(e);
     if (Functions.IncomingInvoice.HaveDuplicates(_obj, _obj.DocumentKind, _obj.Number, _obj.Date, _obj.TotalAmount, _obj.Currency, e.NewValue))
     {
         e.AddWarning(IncomingInvoices.Resources.DuplicateDetected,
                      _obj.Info.Properties.DocumentKind,
                      _obj.Info.Properties.Number,
                      _obj.Info.Properties.Date,
                      _obj.Info.Properties.TotalAmount,
                      _obj.Info.Properties.Currency,
                      _obj.Info.Properties.Counterparty);
     }
 }
Exemple #2
0
        public override void CounterpartyValueInput(Sungero.Docflow.Client.AccountingDocumentBaseCounterpartyValueInputEventArgs e)
        {
            base.CounterpartyValueInput(e);

            if (e.NewValue != null)
            {
                if (Functions.ContractStatement.HaveDuplicates(_obj, _obj.BusinessUnit, _obj.RegistrationNumber, _obj.RegistrationDate, e.NewValue, _obj.LeadingDocument))
                {
                    e.AddWarning(Contracts.ContractualDocuments.Resources.DuplicatesDetected + Contracts.ContractualDocuments.Resources.FindDuplicates,
                                 _obj.Info.Properties.LeadingDocument,
                                 _obj.Info.Properties.Counterparty,
                                 _obj.Info.Properties.BusinessUnit,
                                 _obj.Info.Properties.RegistrationNumber,
                                 _obj.Info.Properties.RegistrationDate);
                }
            }
        }
Exemple #3
0
 public virtual void CounterpartyValueInput(Sungero.Docflow.Client.AccountingDocumentBaseCounterpartyValueInputEventArgs e)
 {
     this._obj.State.Properties.Counterparty.HighlightColor = Sungero.Core.Colors.Empty;
 }