Invoicing Errors

We are also getting this error:

Error: Payment Not Updated. Can’t call method “id” on an undefined value at /home/Cetec-ERP/lib/Cetec/Reboot/Schema/ResultSet/GLEntry.pm line 3616.