Merge pull request #28 from xtuple/master

Catch up.
issue #19131: Fix probelms with document assignments on customer.
Merge pull request #230 from jrogelstad/master

issue #19131: Fix issues with documents on customer