Skip to main content

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:diff to 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.

Changed

  • No Service Task Flow in Runsheet API (app/Http/Controllers/ApiApp/RunsheetController.php)
    • Refactored handleNoServiceTask to delegate task updates to TaskRepository::update rather 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.

Fixed

  • Rental Order Invoice Deletion on Task Status Change (app/Listeners/ChangeStatusTaskListener.php)
    • Patched ChangeStatusTaskListener logic 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.

Removed

  • None.