StatementController
extends Controller
in package
Class StatementController
Handles HTTP requests for Statement management.
Table of Contents
Methods
- destroy() : RedirectResponse
- Delete a bill by ID.
- generateBills() : JsonResponse
- Generate bills for a customer for a given period.
- show() : mixed
- Show the statement for a bill token as a PDF.
- showEstatementPayment() : View
- Show the e-statement payment view for a bill token.
- storeRestitution() : RedirectResponse
- Store restitution and additional cost for a bill.
Methods
destroy()
Delete a bill by ID.
public
destroy(int $id) : RedirectResponse
Parameters
- $id : int
-
The bill ID.
Return values
RedirectResponse —The response after deleting the bill.
generateBills()
Generate bills for a customer for a given period.
public
generateBills(int $id, Request $request) : JsonResponse
Parameters
- $id : int
-
The bill ID.
- $request : Request
-
The HTTP request instance.
Return values
JsonResponse —The response containing the bill data or error message.
show()
Show the statement for a bill token as a PDF.
public
show(string $token) : mixed
Parameters
- $token : string
-
The bill token.
Return values
mixed —The PDF stream or abort response.
showEstatementPayment()
Show the e-statement payment view for a bill token.
public
showEstatementPayment(string $token) : View
Parameters
- $token : string
-
The bill token.
Return values
View —The view for e-statement payment.
storeRestitution()
Store restitution and additional cost for a bill.
public
storeRestitution(int $billId, Request $request) : RedirectResponse
Parameters
- $billId : int
-
The bill ID.
- $request : Request
-
The HTTP request instance.
Return values
RedirectResponse —The response after storing restitution.