Frank, Will give it a go. Hamid is possibly right in that it will be too complex to deal with the various possibilities but I will see if I can illustrate a few simple cases. David ----- David Cousens -- Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-Dev-f1435356.html