Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Asset Depreciation Calculation and Tracking #377

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Dec 24, 2024

This pull request was created by Sweep to resolve the following request by @curtisdelicata:

Description: Manage fixed assets and automate depreciation calculations.
Tasks:

Implement fixed asset registry
Develop depreciation calculation methods
Create fixed asset reports Acceptance Criteria:
Users can add and manage fixed assets
The system automatically calculates depreciation based on chosen methods
Fixed asset reports show current values and depreciation schedules

Continue chatting at https://sweep-chat-demo.vercel.app/c/5936b2a3-444c-4c7c-9fe4-a40ec54932ed.

Purpose

Enhance the accounting system's asset management capabilities by introducing comprehensive depreciation calculation and tracking functionality, supporting both straight-line and reducing balance depreciation methods.

Description

This pull request adds robust asset depreciation features to the accounting system:

  • Extended the Asset model with new depreciation-related fields and methods
  • Created a new DepreciationCalculation model to store detailed depreciation records
  • Implemented two depreciation calculation methods: straight-line and reducing balance
  • Updated Filament resource to support new asset depreciation fields and actions
  • Added database migrations to support the new depreciation tracking infrastructure

The implementation allows users to:

  • Specify depreciation method (straight-line or reducing balance)
  • Set salvage value and acquisition date
  • Automatically calculate depreciation schedules
  • View detailed depreciation calculations for each asset

Summary

  • Added new database migrations:
    • 2024_02_14_000001_add_depreciation_fields_to_assets_table.php
    • 2024_02_14_000002_create_depreciation_calculations_table.php
  • Updated models:
    • app/Models/Asset.php: Added depreciation calculation methods
    • app/Models/DepreciationCalculation.php: New model for tracking depreciation
  • Enhanced Filament resource:
    • app/Filament/App/Resources/AssetResource.php: Added depreciation-related form and table configurations
  • Introduced depreciation calculation methods:
    • Straight-line depreciation
    • Reducing balance depreciation

@curtisdelicata curtisdelicata merged commit 8a42723 into main Dec 24, 2024
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant