Changelog: Aryan - 2026-06-25
Daily Changelog - Waste Vantage Legacy
Overview
Today's changes by Aryan introduce weight setting configurations for partners. This includes UI components in the general settings to configure weight settings per category, and backend logic to persist, cast, and serve defaults for these settings (intended for mobile app usage).
Added
- Database Migration (
database/migrations/2026_06_25_114411_add_weight_setting_column_in_partners_table.php)- Introduced the nullable JSON column
weight_settingto thepartnerstable.
- Introduced the nullable JSON column
Changed
- Partner Model Config (
app/Partner.php)- Added
weight_settingto fillable attributes. - Cast
weight_settingto an array. - Created a custom getter accessor
getWeightSettingAttributewhich returns a default configuration array if no value is set in the database.
- Added
- General Settings Backend (
app/Http/Controllers/Admin/GeneralSettingController.php)- Fetched and passed
defaultCategoriesandweightSettingTypesto the general settings view. - Implemented saving of the
weight_settingparameter on update.
- Fetched and passed
- AutoHelper Additions (
app/Helpers/AutoHelper.php)- Added helper method
getWeightSettingTypesproviding options: Gross Weight, Weight Only, and No Weight.
- Added helper method
- General Settings View (
resources/views/admin/general-setting/index.blade.php)- Added a sidebar button for "Weight Setup".
- Created a "Weight Setup" card that displays select dropdowns for configuring the weight type of each default category.
Fixed
- None.
Removed
- None.