Unable to apply Debit Adjustment to Bill for Retainage correction when documents is 0 balance, gets error: Attempted to divide by zeo

'Attempted to divide by zero.' on attempt to release payment applied to zero-amount document with pending VAT recognized on payments

Date: 31/07/2023

Status: Planned fix in Acumatica build 2024R2Ux, will be merged into upcoming release 2024.2

Reference: CE00039376

Issue

Unable to apply Debit Adjustment to Bill for Retainage correction when documents is 0 balance, gets error: Attempted to divide by zeo

Workaround

Contact MYOB support for an SQL script to fix the issue