Hi Nimnl
check your document splitting configuration, Check the item category assigned to both cash and under payment account. Check the item categories defined in splitting method to transaction assigned to payment document.
First the both item categories should be assigned to it and base category should be customer.
You may have to define your own rule.
Check the same.
Regards
Pankaj p