To troubleshoot:
1) Ensure that Scratch Payment is selected as the payment type, with all words spelled out and capitalized.
2) If that doesn't work, then close out the affected invoice in AVImark by right clicking on the invoice, selecting "change" and inputting the amount that was paid.