AR Payment Issue

Dear CETEC Support Team,

I am encountering an issue while posting a customer payment in CETEC ERP.

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

Transaction Details:

  • Applied Value (Invoice Amount): €6,145.68
  • Charges (Write-off – Foreign Bank Charges): €30.00
  • Payment Value (Net Received): €6,115.68
  • Write-off GL Account: 5043102 – Foreign Bank Charges

The payment structure is:
Invoice Amount – Bank Charges = Net Payment Received, which is correctly reflected in the transaction.

However, upon clicking “Payment Complete” / “Update,” the system throws the above error. Despite this, the invoice status changes to Paid, but no corresponding GL / ledger entry is generated.

Observations / Checks Performed:

  • Amount calculations are verified and correct
  • Write-off account is selected and active
  • Issue occurs during GL Entry creation stage
  • Possible dependency on cost center or missing mapping (Write-off / Unapplied Cash Cost Center fields)

Request:
Kindly review the GL Entry generation logic for this transaction and advise if:

  • A required field (e.g., Cost Center) is missing or mandatory
  • There is a configuration issue with the write-off GL account
  • This is a system-level bug related to GL posting

A screenshot is attached for your reference.

Please let me know if any additional details (Payment ID / Customer / Ledger info) are required.

Regards,

Rana Muneeb

That looks like an account mapping setup issue to me! Is it possible that you had the customer setup as a subsidiary customer, and didn’t have those accounts mapped? If not that, I would definitely look through the GL Transaction settings as that’s likely the cause of that error.

Cetec ERP