Add Late Fee Functionality for Invoices #359
Merged
+182
−37
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request was created by Sweep to resolve the following request by @curtisdelicata:
Continue chatting at https://sweep-chat-demo.vercel.app/c/adf9001e-104c-4862-a1b8-4360819185e8.
Purpose
Implement a comprehensive late fee system for invoices to automatically calculate and track additional charges for overdue payments, improving financial management and incentivizing timely payments.
Description
This pull request introduces a robust late fee mechanism for invoices with the following key features:
The new functionality allows businesses to:
Summary
2024_02_24_000000_add_late_fee_columns_to_invoices.php
with new invoice columnsapp/Models/Invoice.php
with late fee calculation methodsapp/Console/Commands/CalculateLateFees.php
for automated late fee processingapp/Filament/App/Resources/InvoiceResource.php
to include late fee configurationapp/Console/Kernel.php
to schedule daily late fee calculationscalculateLateFee()
isOverdue()
getTotalWithTaxAndLateFees()