It looks like you are trying to calculate the order total for items that are not gifts and do not have the order tag “Diskon New Product” applied to them. The syntax you used for the constraint, specifically (OrderTag.TagName=!Diskon New Product), may not be correct. Here are a few things you can try:
Make sure the order tag name is spelled correctly, including any spaces or capitalization. You can check the exact name of the tag in the Order Tags section of your POS system.
Try using the “NOT” operator before the order tag name, like this: “!(OrderTag.TagName=Diskon New Product)”. This should exclude any items that have the “Diskon New Product” tag.
Here’s an example of what your new constraint might look like:
[=TN(‘{TICKET ORDER TOTAL EXP:(ODI=True) && (OS.GStatus=!Gift) && !(OrderTag.TagName=Diskon New Product)}’)]
I hope this helps! Let me know if you have any further questions or issues.