I am trying to adjust a payment that was made without a discount. It had been processed without the discount and deposited. I reopened the deposit and payment to make adjustments and when i go to close the payment with the correct discount i get the error code below.
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 3814.
The error message you are seeing as shown in initial comment suggests that there is a GL Transaction Mapping that is not set, likely the mapping for ‘Customer Payment Discount’. Example in this screenshot from a testing environment: