what i mean is when an item is excahnged with new item1 on the ticket screen. how will i be able to check whether item1 price is greater than returneditem.
if not greater show message item cannot be exchnaged or refunded
if price is greater or equal prepare a new bill
Customer may buy 2 Item1 in exchange so item1 price itself does not fulfill some possible real life cases. Check if ticket balance is greater than zero before settling or closing ticket.
I’m not suggesting x method over y method. Reopening tickets is another useful method. We have 3 or 4 different refund implementations explained in tutorials. Searching them might give other ideas as well.
Edit: I mean there is no single method that will just fit to the business needs. Reviewing different methods and implementing your own method will be the best solution. See how @QMcKay improved this method for his specific needs here Refund Item button. It works with settled tickets.
The cool thing is you can configure it to behave however you want. So figure out the flow you want and then explain it in detail with us and we can help you get started.
Sometimes when I decide I want to implement something I get started with an idea of how I want it to behave I build it and then decided maybe I really wanted it to do something different so I try other methods until I find one that fits my need. That is why we encourage you to try various things even if you may not use it. You get experience and eventually can build anything you want anytime you want.
PS: I often build many elaborate systems on here and I share that. Reality is my actual shop system is VERY basic. Most of what I share on here I actually do not use. The practice helps me learn functions and gives me knowledge that if I do decide to do something on my live system I will know how.
what i want to do next is add 1 order only and compare its price with ReturnAmt tag
if price > = ReturnAmt
settle bill and close
else
show message price should be greater
i need assisstance how i should compare this in rule with order added event
First change Ticket’s Min Amount state to the refunding item’s price. After than don’t allow adding orders that is less than min amount. It can be something like that.