Invoice - Unable to post if 'Auto Apply Prepaids in Invoices' is checked

Issue No: AR-8530
Created 8/21/2018 9:42:46 PM
Type Bug-QC
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 18.3
Description Setup:   Auto Apply Prepaids in Invoices = Checked (System Manager \| Company Configuration \|Sales)   !pastedImage_d103619_0.png!   Steps to reproduce:   1. Create a new customer   2. Add and pay a new customer prepayment   Source = Standard   Type = Customer Prepayment   Customer = any   Prepay Type = Standard   Total = 100   3. Add and save a new invoice   Source = Standard   Type = Invoice   Customer = same as above   Item = 87G   Shipped = 10   Price = 10   Total = 100   4. Click Post toolbar button   Expected result: Customer Prepayment should be autoapplied to invoice   Actual result: Error is displayed: "The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction. (OK)   !pastedImage_d103619_1.png!