Affiliate Link tracking stat Product sold not matching ledger

The products sold does not match the amount in the ledger.

In our case is also counts non-commission products. But shouldnt the link stat only show product that are definered for commision?

You would have to look at your commission programs to find out how they are setup. Go to referral partners and then the sub-menu will have a referral partner menu to it. In that there is a commissions programs link that you can find the details for commission programs in.