@Roger you have to add link transactions here:
https://github.com/frappe/erpnext/blob/develop/erpnext/selling/doctype/customer/customer_dashboard.py