feat: expose meta column and transaction relationships in Orders report schema#207
Open
feat: expose meta column and transaction relationships in Orders report schema#207
Conversation
…rt schema - Remove 'meta' from excludeColumns to make it available in report builder - Add meta column definition with JSON type for custom fields and metadata - Add Transaction relationship with auto-join support for financial reporting - Include nested TransactionItems relationship for line-item details - Add computed columns for transaction amount aggregates (sum, avg, count) This enables users to query and report on: - Order metadata and custom fields - Transaction financial data (amount, currency, gateway, status) - Transaction line items (details, codes, amounts) - Financial aggregates across orders Resolves the limitation where users could not report on critical financial data and custom metadata associated with orders.
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.
Summary
This PR exposes the
metacolumn and transaction relationships in the Orders report schema, enabling users to query and report on critical financial data and custom metadata associated with orders.Changes Made
1. Meta Column Exposure
metafromexcludeColumnsarraymetawith JSON type2. Transaction Relationship
transactionrelationship with auto-join support3. Nested Transaction Items
itemsas nested relationship undertransaction4. Financial Computed Columns
Impact
Users can now:
Technical Details
server/src/Support/Reporting/FleetOpsReportSchema.phpTesting Recommendations