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-levelpointing toGeneralWasteBinHireController@updateStockLevel.
- Registered a new route
Changed
- General Waste Bin Hire Controller (
app/Http/Controllers/Admin/GeneralWasteBinHireController.php)- Added the
updateStockLevelmethod to look up service areas by suburb/postcode, determine customer type classification (normal, builder, or vip), and invokePricingRepository::updateStockinside a database transaction.
- Added the
- Pricing Repository Stock Operations (
app/Repositories/PricingRepository.php)- Added the
updateStockmethod to dynamically update base price stock limits (columnsstock,stock_business, orstock_vip) on thepricing_datestable for a given set of bin sizes, waste types, service areas, and categories.
- Added the
- Bin Price Administration (
app/Http/Controllers/Api/BinPriceAdminController.php)- Updated stock fetching logic to read stock from the first element of
pricingDatesinstead of the top-level property.
- Updated stock fetching logic to read stock from the first element of
- Order Management UI Integration (
resources/js/components/order-management/...)- Integrated stock level checks and references within
OrderCustomerInformation.vue,OrderCustomerSearch.vue,OrderLocation.vue,OrderManagement.vue, andOrderScheduleBin.vue.
- Integrated stock level checks and references within
- 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
rentalOrdersrelationship to filter for orders withis_rental = 1instead ofis_rental = 0.
- Patched the
Removed
- None.