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 simplifiedlet 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.vueresources/js/components/contracts/ContractBinServices.vueresources/js/components/contracts/ContractCreate.vueresources/js/components/contracts/ContractCustomerLookup.vueresources/js/components/contracts/ContractDetails.vueresources/js/components/contracts/ContractOrderPreview.vueresources/js/components/contracts/EditServicePricingModal.vueresources/js/components/contracts/ServicePricingForm.vue
- Applied premium aesthetic updates (charcoal/slate headers, clean card borders, border-radius, padded footers, and icons) across:
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.
- Added an order validation guard in
- Skip Bin Order Action Button Logical Bug (
resources/js/components/AdminNewSkipBinOrder.vue)- Corrected button visibility conditional operator from
|| auto_invoice_type == 2to&& auto_invoice_type == 2.
- Corrected button visibility conditional operator from
- Blade Route Parameter Mapping (
resources/views/admin/task/edit.blade.php)- Fixed route parameter names: from
idtoorder_idinadmin.orders.show-detailand fromordertoidinadmin.orders.show.
- Fixed route parameter names: from
Removed
- None.