Skip to main content

Changelog: Dwi - 2026-06-09

Daily Changelog - Waste Vantage Legacy

Overview

Today's changes by Dwi focus on visual style polish across contract and modal UI elements to match modern design standards, correcting decimal point display in Task Edit, refining overload weight calculations, and fixing route and action parameter mismatches on orders.


Added

  • Max and Overload Weight Inputs (resources/views/admin/task/edit.blade.php)
    • Added new "Max Weight" and "Overload Weight" input fields to the task edit screen.

Changed

  • Task Weight & Overload Calculation Polish (resources/views/admin/task/edit.blade.php)
    • Renamed "General Waste Price per kg" to "Overload Charge per kg".
    • Updated weight calculation helper calcWeight() to simplified let chargeWeight = weight - maxWeight.
    • Set the unit price value directly from the task or order detail instead of hard-formatting as decimal numbers.
  • Contract wizard UI & Modal Styling (Multiple Vue Components)
    • Applied premium aesthetic updates (charcoal/slate headers, clean card borders, border-radius, padded footers, and icons) across:
      • resources/js/components/contracts/ContractAddServiceModal.vue
      • resources/js/components/contracts/ContractBinServices.vue
      • resources/js/components/contracts/ContractCreate.vue
      • resources/js/components/contracts/ContractCustomerLookup.vue
      • resources/js/components/contracts/ContractDetails.vue
      • resources/js/components/contracts/ContractOrderPreview.vue
      • resources/js/components/contracts/EditServicePricingModal.vue
      • resources/js/components/contracts/ServicePricingForm.vue

Fixed

  • Order Detail Navigation Guard (app/Http/Controllers/Admin/OrderController.php)
    • Added an order validation guard in showOrder() to redirect requests back to the correct detail URL if the detail record's associated order ID does not match the route parameter.
  • Skip Bin Order Action Button Logical Bug (resources/js/components/AdminNewSkipBinOrder.vue)
    • Corrected button visibility conditional operator from || auto_invoice_type == 2 to && auto_invoice_type == 2.
  • Blade Route Parameter Mapping (resources/views/admin/task/edit.blade.php)
    • Fixed route parameter names: from id to order_id in admin.orders.show-detail and from order to id in admin.orders.show.

Removed

  • None.