xtuple/database — pull request #128 by millerdev (2014-02-20 20:35:51+00:00)
Title: Fix INSERT rule of api.cashreceiptapply

`INSERT INTO api.cashreceiptapply ...` did not work correctly if there were posted cash receipts with the same customerId, fundsType and refnumber as the new receipt. This change makes the INSERT rule affect un-posted cash receipts only.