# Test Commission Calculation Settings

### To test the commission calculation settings, you can follow the steps provided below:

Go to the **General** section in the **Settings** tab of the GoAffPro admin panel.

![Settings > General](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPzLtyP46oY7cyXnkw%2F-MNY5Qh4eoyOcJjibQD0%2F-MNYT2AfrmwK-FFL4Yy_%2Fimage.png?alt=media\&token=22e5f360-32d2-461c-a194-b7e02254fa85)

Here, go to the Sales section.

![Sales](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPzLtyP46oY7cyXnkw%2F-MNY5Qh4eoyOcJjibQD0%2F-MNYSZJ54gGCXgpMP-HH%2Fimage.png?alt=media\&token=f7188ac5-4d87-45c0-908c-3843c20aa271)

Here, the "**Include discounts**" option is enabled and is set to adjust the commission by **discount percentage**.

![Adjust by discount percentage ](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPzLtyP46oY7cyXnkw%2F-MNY5Qh4eoyOcJjibQD0%2F-MNYXNHhcT-HBrmBKKVn%2FScreenshot%202020-12-02%20181211.png?alt=media\&token=6e4f5bf6-eb2d-4460-a2f9-1fc7ee0aa48c)

In the test order's summary, we can see that the discount adjustment is deducting $20 from the sales commission: **$200 (sales commission) - $20 (discount adjustment) = $180 (total commission)**.&#x20;

The discount adjustment is calculated by the percentage of the discount applied (10%) on the sales commission ($200) which will be: **$20.**

{% hint style="info" %}
The commission rate of the affiliate is set to 20%.
{% endhint %}

![Order Summary](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPzLtyP46oY7cyXnkw%2F-MNY5Qh4eoyOcJjibQD0%2F-MNYX1Dz2E83fQDMtkjK%2FScreenshot%202020-12-02%20182623.png?alt=media\&token=cef7a33c-447f-4fb0-bfee-5399c83f1ddc)

After this, go back to the Sales section (in Settings > General) and set the "**Include discounts**" option to adjust the commission by **discount amount**.

![Adjust by discount amount](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPzLtyP46oY7cyXnkw%2F-MNY5Qh4eoyOcJjibQD0%2F-MNYXiueQrVt0j3pYXLF%2FScreenshot%202020-12-02%20182915.png?alt=media\&token=137345f5-711c-4a10-b487-63d9a9c49ec9)

After setting this up, the commission in the order will be adjusted by the discount amount.

![Sales settings](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPzLtyP46oY7cyXnkw%2F-MNY5Qh4eoyOcJjibQD0%2F-MNYYhKFqr-tRjFXGetQ%2FScreenshot%202020-12-02%20183354.png?alt=media\&token=5b11d2c6-4cd0-4b8b-8e40-2ecb507bfb51)

Now, you will have to reprocess the order. To do that go to the Sales > All Sales table. There, click on **Reject** and **Delete** the sale. After this, re-assign the sale to the affiliate.

**You can follow the guide below to reprocess the sale:**

{% content-ref url="../../../program-management/manage-sales/reprocessing-sale" %}
[reprocessing-sale](https://docs.goaffpro.com/program-management/manage-sales/reprocessing-sale)
{% endcontent-ref %}

![Reprocess the sale](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPzLtyP46oY7cyXnkw%2F-MNY5Qh4eoyOcJjibQD0%2F-MNYZ4hph9MQF1JCuIve%2FScreenshot%202020-12-02%20183600.png?alt=media\&token=3493897e-7bdf-445f-9715-0eb4223c3223)

In the test order's summary, we can see that the discount adjustment is deducting $100 from the sales commission: **$200 (sales commission) - $100 (discount adjustment) = $100 (total commission)**.&#x20;

The discount adjustment is calculated by the amount of the discount applied in the order: **10% (discount applied) of $1000 (order subtotal) = $100.**

![Order Summary](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPzLtyP46oY7cyXnkw%2F-MNY5Qh4eoyOcJjibQD0%2F-MNYbALnqy5rDgmgZ2gl%2FScreenshot%202020-12-02%20184904.png?alt=media\&token=814d8cfa-c1c9-4c2b-9c87-6f497aa43714)

{% hint style="info" %}
Similarly, different sales settings can be tested by enabling them and reprocessing the order to see how the commission will be calculated.&#x20;
{% endhint %}
