Skip to main content

Changelog: Dedek - 2026-06-01

Daily Changelog - Waste Vantage Legacy

Overview

Today's changes by Dedek focus on adding a stock level adjustment feature for the order management system, introducing a route and controller endpoint to update stock levels, updating the pricing repository to adjust stock quantities by customer type, and correcting a legacy database relationship query.


Added

  • Stock Level Component (resources/js/components/order-management/StockLevel.vue)
    • Added a Vue component to display and manage stock levels for different bin sizes and types.
  • Stock Level Update Endpoint (routes/admin.php)
    • Registered a new route POST /admin/skip-bin/update-stock-level pointing to GeneralWasteBinHireController@updateStockLevel.

Changed

  • General Waste Bin Hire Controller (app/Http/Controllers/Admin/GeneralWasteBinHireController.php)
    • Added the updateStockLevel method to look up service areas by suburb/postcode, determine customer type classification (normal, builder, or vip), and invoke PricingRepository::updateStock inside a database transaction.
  • Pricing Repository Stock Operations (app/Repositories/PricingRepository.php)
    • Added the updateStock method to dynamically update base price stock limits (columns stock, stock_business, or stock_vip) on the pricing_dates table for a given set of bin sizes, waste types, service areas, and categories.
  • Bin Price Administration (app/Http/Controllers/Api/BinPriceAdminController.php)
    • Updated stock fetching logic to read stock from the first element of pricingDates instead of the top-level property.
  • Order Management UI Integration (resources/js/components/order-management/...)
    • Integrated stock level checks and references within OrderCustomerInformation.vue, OrderCustomerSearch.vue, OrderLocation.vue, OrderManagement.vue, and OrderScheduleBin.vue.
  • Compiled Assets (public/js/app.js, public/mix-manifest.json, etc.)
    • Recompiled public asset files to deploy front-end modifications.

Fixed

  • Customer Rental Orders Relationship (app/Customer.php)
    • Patched the rentalOrders relationship to filter for orders with is_rental = 1 instead of is_rental = 0.

Removed

  • None.