Changelog: Aryan - 2026-05-28
Daily Changelog - Waste Vantage Legacy
Overview
Today's changes by Aryan focus on adding an administrative console command to display formatted diffs of database activity log entries, integrating the standard repository update flow for "no service" task updates in the mobile app runsheet API, and preventing premature invoice deletion for rental orders by ensuring invoice cancellation only occurs when all tasks associated with the order are cancelled or marked as "no service".
Added
- Activity Log Diff Console Command (
app/Console/Commands/ActivityLogDiffCommand.php)- Created a new Artisan command
activity-log:diffto retrieve and format the history of modifications recorded in the activity log for any given model subject. It dynamically resolves causer names and roles and presents field-level changes as a colorized inline diff.
- Created a new Artisan command
Changed
- No Service Task Flow in Runsheet API (
app/Http/Controllers/ApiApp/RunsheetController.php)- Refactored
handleNoServiceTaskto delegate task updates toTaskRepository::updaterather than manually saving attributes and firing events directly on the task model when the request is not from mobile (is_from_mobile != 1). This ensures consistent business logic execution during the "no service" state transition.
- Refactored
Fixed
- Rental Order Invoice Deletion on Task Status Change (
app/Listeners/ChangeStatusTaskListener.php)- Patched
ChangeStatusTaskListenerlogic to verify that all tasks associated with a rental order detail are cancelled (status 6) or no service (status 8) before executing the transaction that deletes the corresponding order invoice.
- Patched
Removed
- None.