Skip to main content

Changelog: Aryan - 2026-06-05

Daily Changelog - Waste Vantage Legacy

Overview

Today's changes by Aryan focus on refining the unified contract edit and creation user interface. This includes introducing a modular edit service pricing layout on contract views, mounting reactive sub-pricing form components, correcting postcode missing alert prompts to guide operator actions, and resolving N+1 database relationships when parsing rental bin details.


Added

  • Unified Edit Service Pricing Modal (resources/js/components/contracts/EditServicePricingModal.vue, resources/js/components/contracts/ServicePricingForm.vue)
    • Added the EditServicePricingModal Vue component to replace direct state updates when editing price structures, improving component decoupling.
    • Added the ServicePricingForm Vue sub-component which handles reactive calculations for hire subtotal, GST percentage, and grand total, plus surcharges array bindings.

Changed

  • Rental Service Package Layout (resources/views/admin/order/_service_package.blade.php)
    • Updated editing buttons to invoke VueApp.$refs.servicePricingModal.open() directly, deprecating old Vuex-based modal actions.

Fixed

  • Eager Loading Optimization (app/Http/Controllers/Admin/OrderController.php)
    • Fixed eager loading in OrderController@edit to load wasteContainer.binDimensions alongside unitProduct for bin weight definitions, eliminating N+1 queries.
  • Manual Pricing Instructions Alert (resources/js/components/contracts/ContractAddServiceModal.vue)
    • Adjusted error handler when postcode mapping is missing to warn operators clearly and direct them to input manual prices on the pricing sheet.

Removed

  • None.