add company to invoice entity - #6095
Open
JoeJoeflyn wants to merge 1 commit into
Open
Conversation
JoeJoeflyn
force-pushed
the
feature/invoice-company-field
branch
from
August 2, 2026 20:20
124a9f1 to
1ce0453
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6095 +/- ##
=========================================
Coverage 88.75% 88.76%
- Complexity 10090 10092 +2
=========================================
Files 889 889
Lines 32152 32157 +5
=========================================
+ Hits 28538 28543 +5
Misses 3614 3614
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #5838
The invoice template requires a company, but that company was never stored on the invoice itself. This adds a
companyfield to theInvoiceentity, snapshotted at creation time viasetModel()— same asvat,dueDays, andcurrencyalready are. The company is then preserved for API responses and exports even if the template or customer changes later.companycolumn onkimai2_invoices(migration included)setModel()copies the template company into the invoicesetModel()integration, and API response structure