Sorry about this little delay.
Yes, the orders and sales are being recorded in usual way and are working properly. I meant to say, the affiliate sales are not being recorded. I have tested when I click a text link created with the contrib interface posted in a wordpress blog, I followed all the steps to confirm the order and as customer the process works fine. As owner or shop manager, sales through this links seems normal, but in the admin panel for affiliates, the sale is not shown and is not recorded not for the affiliate nor for the manager/owner.
In conclusion, the main problem is that the orders works fine (as usual) but are not recorded coming from a affiliate text link.
Affiliate_sales table is empty.