Bug #2941
Fix 500 Error While Posting Work Completion Certificate (WCC)
0%
Description
While posting a Work Completion Certificate (WCC), clicking the Confirm button in the confirmation dialog results in a 500 Internal Server Error, preventing the WCC from being posted successfully.
Steps to Reproduce:
Navigate to Works → Work Completions.
Open a WCC in Draft status.
Click the Post button.
In the confirmation dialog, click Confirm.
Observe the error.
Actual Result:
The API returns a 500 Internal Server Error when the Confirm button is clicked.
An error message is displayed: "An error occurred while posting the work completion certificate."
The WCC is not posted.
Expected Result:
The WCC should be posted successfully without any server error.
The corresponding station service expense should be created (if applicable), and the WCC status should be updated to Posted.
A success message should be displayed to the user.
Environment:
Module: Works → Work Completions
Action: Post Work Completion Certificate (WCC)
Issue Type: Backend/API (500 Internal Server Error)
No data to display