Skip to main content

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_setting to the partners table.

Changed

  • Partner Model Config (app/Partner.php)
    • Added weight_setting to fillable attributes.
    • Cast weight_setting to an array.
    • Created a custom getter accessor getWeightSettingAttribute which returns a default configuration array if no value is set in the database.
  • General Settings Backend (app/Http/Controllers/Admin/GeneralSettingController.php)
    • Fetched and passed defaultCategories and weightSettingTypes to the general settings view.
    • Implemented saving of the weight_setting parameter on update.
  • AutoHelper Additions (app/Helpers/AutoHelper.php)
    • Added helper method getWeightSettingTypes providing options: Gross Weight, Weight Only, and No Weight.
  • 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.