[Payment Processor] How to setup discount calculation before tax?

How to setup automatically give 10% discount before tax when a certain payment that configured a payment processor is clicked (I tried using the payment processor, but it still gives me the discount after tax; not before tax).

Any solution for this?

Is there not an option in include tax on calculations?
As a discount I believe including tax on the discount is equivalent of discount before tax as is including (deducting) tax on the discount.

I could not find any option to include “tax” on property editor. You are right, the discount is equivalent of discount before tax. But my local government rule is to add discount before tax (in order paying excess tax). Following are the screenshots.

Payment Processor Property Editor (Discount Calculations)

Payment Processor Property Editor (Add Calculations)

Sort Account Transaction Types

Still no luck, discount still calculated before tax (PPN 10%). I set the rate 0.00 on “Member Discount 10%” calculation, because later I will have to set the rate 10 on “Discount Calculations” on Payment Processor Property Editor".

Just clarify for me what values you need to make?
If discount is 10%

Ticket total is 1000
Discounted amount is 900
+10% tax on 900 is 90
Total is 990!!

The totals equate to discount before tax but see tax showing as 100…
Can you show account transactions for that ticket?

Exactly,

Ticket total is 1000
10% Member Discount is -100
Discounted amount is 900
+10% tax on 900 is 90
Total is 990

I know that the totals equate to discount before tax, but I have to pay more tax if discount is added after tax.

Here is the account transaction for this ticket:

And what values do you get with include tax not ticked?

Try checking the Use Plain Total box instead of Include Tax.

1 Like

Well, sounds strange but both calculation have exactly the same value.

@QMcKay I have tried checking the Use Plain Sum and both (Include Tax + Use Plain Sum), but the payment processor (Discount Calculation) is still calculated before tax.

Is there any way to sort Transaction priority? E.g.:

  1. Sale Transaction
  2. Member Discount Transaction
  3. Tax
  4. Payment Transaction

Transactions are just a map for moving the values between accounts, the values will be set before that.

I thought that was the aim :stuck_out_tongue:

1 Like

Is your tax an actual tax template or are you using Calculation?

Actually, this is what I’m trying to achieve. The discount is calculated before tax, this is done when using “customisable Discount button” on payment screen.

@QMcKay

I’m using tax template

[TAXES]
<J00>{TAX NAME} {TAX RATE}%:|[=FF('{TAX AMOUNT}','#,##0')]

Accounts are messed up, either that or mine are wrong.
Tax has no target for one…

Thats not a tax template, thats printer template for tax

Sorry, it’s quite late here already I can’t concentrate. Here’s my tax template:

And the TAX transaction type?

Here we go,

Likely you cant do it with a payment processor… you should probably automate a regular calculation instead. You can do this by creating a calculation selector but leaving header part blank.

Pretty sure that is wrong… your accounts will be all over the shop;