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

Add Time Entry Tracking and Invoice Calculation Features #358

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: Add a system for tracking billable hours.

Tasks:
Create TimeEntry model and migration.
Develop UI for adding time entries for clients.
Link time entries to invoices for billing purposes.
Acceptance Criteria:
Users can track billable hours.
Time entries are linked to invoice generation.

Continue chatting at https://sweep-chat-demo.vercel.app/c/3ad35fd1-cb4d-4197-834f-8d925dbf3b06.

Purpose

Implement a comprehensive time tracking system that allows users to log work hours, associate them with customers and invoices, and automatically calculate billable amounts.

Description

This pull request introduces a new time entry tracking feature for the accounting system. The implementation includes:

  • A new TimeEntry model to capture detailed work time information
  • Database migration for creating the time_entries table
  • Filament resource for managing time entries
  • Enhanced invoice calculation methods to incorporate time entry totals
  • Relationships between time entries, customers, and invoices

The feature enables users to:

  • Create time entries with start and end times
  • Associate time entries with specific customers
  • Optionally link time entries to invoices
  • Automatically calculate total billable amounts based on hourly rates
  • View and manage time entries through a Filament resource

Summary

  • Added new TimeEntry model with comprehensive attributes
  • Created database migration for time_entries table
  • Implemented Filament resource for time entry management
  • Extended Invoice model with time entry calculation method
  • Added relationships between TimeEntry, Customer, and Invoice models
  • Introduced automatic total amount calculation for time entries

@curtisdelicata curtisdelicata merged commit 75e2293 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