Skip to content

After approve petty cash error page displayed #20453

@Irani96

Description

@Irani96

File Path: common/request/petty_cash_bill_cancel_request_approvel.xhtml
Petty Cash Bill Search->Pending Approvals->Request Search->To Approve (under review status)->Approve

Issue Title

500 error when approving petty cash bill cancel request – transaction rollback

Module

Common → Request → Petty Cash Bill Cancel Request Approval
(/common/request/petty_cash_bill_cancel_request_approvel.xhtml)

Environment

QA1

Description

A 500 Internal Server Error occurs when attempting to approve a petty cash bill cancel request. The approval գործընթաց fails due to a transaction rollback triggered during invoice validation.

Error Message
javax.ejb.EJBTransactionRolledbackException: Client's transaction aborted

Exception Type
javax.faces.el.EvaluationException

Key Stack Trace Insight

  • Error occurs in:
    RequestController.approvePettyCashRequest()
    PettyCashBillController.checkValidInvoiceNumber()

  • Failure triggered during:
    findFirstByJpql() database call

Expected Behavior

  • Petty cash cancel request should be approved successfully
  • Invoice validation should complete without errors
  • Transaction should commit properly

Actual Behavior

  • Approval action fails
  • Page throws HTTP 500 error

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions