what does this error mean
Could mean a bazillion things. We would not know unless we saw the Error Details. But typically its a bad constraint.
i think its related to an action i am doing
Top-level Exception
Type: System.InvalidOperationException
Message: Sequence contains more than one matching element
Source: System.Core
Stack Trace: at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source, Func2 predicate)
at Samba.Domain.Models.Accounts.AccountTransactionDocument.UpdateSingletonTransactionAmount(Int32 transactionTypeId, String transactionName, Decimal amount, Decimal exchangeRate, IEnumerable1 accountDataList) at Samba.Domain.Models.Tickets.Calculation.UpdateCalculationTransaction(AccountTransactionDocument document, Decimal amount, Decimal exchangeRate, IEnumerable1 accountDataList)
at Samba.Domain.Models.Tickets.Ticket.CalculateServices(IEnumerable`1 calculations, Decimal sum)
at Samba.Domain.Models.Tickets.Ticket.GetSum()
Share the action. It looks like its a Create Account Document or something similar.
ya if i call this action then its giving error
i just want to update the accounts
You are trying hard to get a Ticket level service charge to work per order. That is probably not a very good method to do this.
BTW: you can not remove a ticket wide service charge at product level. You are stubbornly trying to it which is really not a bad thing as you will learn through this process.
oh ok you men the button is mapped to order line and the transaction action should be called on ticket line mapping only
ya now getting hang of it since i want to accomplish my task i have to play around and get it done
In your rule what is the Discount 10% action? Also why the show message with Order price?
Discount -10% is to give -10% discount on order line.
i was using the show message to show the visible price

