ExpandedVenture / ConnectionSphere

Simple Service to Start Prospecting Online
0 stars 0 forks source link

PayOuts Manual Registration #286

Open leandrosardi opened 2 years ago

leandrosardi commented 2 years ago

Add 'Affiliate Payout' and 'Affiliate Bonus' as records of the tracking_pixel_visit table.

When calculate total commission - paid commissions; disregard 'Affiliate Bonus', because a bonus is not considered as a past payout to be deducted from the total of commissions.

So, to calculate the commissions to pay you have to do:

Commissions to Pay = Total Revenue * Commission-Rate - Past Affiliate PayOuts

If you want to add a bnus of X%, you can calculate it with this formula:

Bonus of X% = X * Commissions to Pay / Commission-Rate