Changelog: Aryan - 2026-06-19
Daily Changelog - Waste Vantage Legacy
Overview
Today's changes by Aryan focus on enhancing contract functionality. Key modifications include introducing service frequency options ('once' vs 'recurring') for additional service charges, implementing automatic task assignment for delivery tasks post-creation, and extending address components to support unit_lot fields in contracts.
Added
- Service Pricing Modal Components (
resources/js/components/contracts/AddServicePricingModal.vue)- Created a new modal component allowing administrators to dynamically add new service pricing structures to contracts directly from the contract detail page.
- Migration for Extra Service Frequency (
database/migrations/2026_06_19_170406_add_extra_service_frequency_column_in_order_details_table.php)- Added a migration to insert the
extra_service_frequencycolumn (enum/string) into theorder_detailstable to control how extra charges are billed.
- Added a migration to insert the
Changed
- Contract Additional Services Logic (
app/Repositories/OrderRentalRepository.php)- Restructured calculations to support
extra_service_frequencyvalues. Services marked asonceare now only billed and applied to delivery tasks, whereasrecurringservices are added to recurring runsheets. - Enabled auto-assignment of drivers to delivery tasks upon contract detail task generation by calling
TaskRepository::autoAssignTask.
- Restructured calculations to support
- Contract address properties (
resources/js/components/contracts/ContractBinServices.vue,resources/js/components/contracts/ContractCustomerLookup.vue,resources/js/components/contracts/ContractOrderPreview.vue)- Updated address component integration to include unit and lot values (
unit_lot), resolving address formatting issues for multi-unit customer sites.
- Updated address component integration to include unit and lot values (
- Contract service creation forms (
resources/js/components/contracts/ContractCreate.vue,resources/js/components/contracts/EditServicePricingModal.vue,resources/js/components/contracts/ServicePricingForm.vue,resources/js/components/contracts/ContractAddServiceModal.vue)- Integrated frequency selection fields ('once' vs 'recurring') and updated parameters for creating/updating contract service rates.
Fixed
- None.
Removed
- None.