Repository navigation
Add synthetic financial ledger fixture with accounting negatives (#496) #503
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
Merged
JohnnyWilson16
merged 2 commits into
FreshCode-Org:main
from
muhammad-muneeb3:issue-496-financial-ledger
Sep 25, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,6 +39,7 @@ | |
| "large_panel", | ||
| "duplicate_heavy", | ||
| "locale_numbers", | ||
| "financial_ledger", | ||
| "mixed_roles", | ||
| ] | ||
|
|
||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| transaction_id,transaction_date,description,amount,currency,account | ||
| TX-001,2026-01-02,Opening balance,"$1,250.00",USD,Cash | ||
| TX-002,2026-01-03,Vendor invoice,"($1,250.00)",USD,Accounts Payable | ||
| TX-003,2026-01-04,European sale,"EUR 1.250,50",EUR,Revenue | ||
| TX-004,2026-01-05,European refund,"(EUR 1.250,50)",EUR,Refunds | ||
| TX-005,2026-01-06,Small card fee," € 0,50 ",EUR,Bank Fees | ||
| TX-006,2026-01-07,Service charge,"EUR 12,5",EUR,Bank Fees | ||
| TX-007,2026-01-08,Payroll batch,"$2,500.00",USD,Payroll | ||
| TX-008,2026-01-09,Payroll reversal," ($2,500.00) ",USD,Payroll | ||
| TX-009,2026-01-10,Office rent,"EUR 2.100,00",EUR,Operating Expense | ||
| TX-010,2026-01-11,Rent correction,"(EUR 2.100,00)",EUR,Operating Expense | ||
| TX-011,2026-01-12,Cloud hosting,"$3,450.75",USD,Technology | ||
| TX-012,2026-01-13,Cloud credit,"($3,450.75)",USD,Technology | ||
| TX-013,2026-01-14,Consulting income,"EUR 4.750,25",EUR,Revenue | ||
| TX-014,2026-01-15,Consulting reversal,"(EUR 4.750,25)",EUR,Revenue | ||
| TX-015,2026-01-16,Travel advance," $875.00 ",USD,Travel | ||
| TX-016,2026-01-17,Travel return," ($875.00) ",USD,Travel | ||
| TX-017,2026-01-18,Equipment purchase,"$12,000.00",USD,Fixed Assets | ||
| TX-018,2026-01-19,Equipment refund,"($1,200.00)",USD,Fixed Assets | ||
| TX-019,2026-01-20,Insurance premium,"EUR 1.050,00",EUR,Insurance | ||
| TX-020,2026-01-21,Insurance rebate,"(EUR 150,00)",EUR,Insurance | ||
| TX-021,2026-01-22,Interest received,"$45.67",USD,Interest | ||
| TX-022,2026-01-23,Interest correction,"($5.67)",USD,Interest | ||
| TX-023,2026-01-24,Settlement received,"EUR 10.000,00",EUR,Settlements | ||
| TX-024,2026-01-25,Settlement adjustment,"(EUR 250,00)",EUR,Settlements | ||
| TX-025,2026-01-26,Unmarked accounting adjustment,"(1,250.00)",USD,Settlements |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "balanced": { | ||
| "idempotent": true, | ||
| "row_count": 25 | ||
| }, | ||
| "semantic_auto": { | ||
| "required_conversions": { | ||
| "amount": "float64", | ||
| "transaction_date": "datetime64" | ||
| }, | ||
| "target_values": { | ||
| "TX-002": -1250.0, | ||
| "TX-003": 1250.5, | ||
| "TX-004": -1250.5, | ||
| "TX-005": 0.5, | ||
| "TX-008": -2500.0, | ||
| "TX-023": 10000.0, | ||
| "TX-024": -250.0, | ||
| "TX-025": -1250.0 | ||
| }, | ||
| "row_count": 25, | ||
| "idempotent": true | ||
| } | ||
| } |
45 changes: 45 additions & 0 deletions
45
tests/fixtures/golden/financial_ledger.balanced.report.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| { | ||
| "actions": [ | ||
| { | ||
| "column": "amount", | ||
| "confidence": 1.0, | ||
| "count": 4, | ||
| "description": "trimmed surrounding whitespace", | ||
| "human_review": false, | ||
| "memory_influenced": false, | ||
| "model_id": "", | ||
| "rationale": "", | ||
| "reversible": null, | ||
| "risk": "low", | ||
| "status": "automatic", | ||
| "step": "strip_whitespace" | ||
| }, | ||
| { | ||
| "column": "transaction_date", | ||
| "confidence": 1.0, | ||
| "count": 25, | ||
| "description": "converted to datetime64[ns]", | ||
| "human_review": false, | ||
| "memory_influenced": false, | ||
| "model_id": "", | ||
| "rationale": "", | ||
| "reversible": null, | ||
| "risk": "low", | ||
| "status": "automatic", | ||
| "step": "fix_dtypes" | ||
| } | ||
| ], | ||
| "cols_after": 6, | ||
| "cols_before": 6, | ||
| "columns_dropped": [], | ||
| "columns_imputed": [], | ||
| "columns_preserved": [], | ||
| "duplicates_removed": 0, | ||
| "missing_after": 0, | ||
| "missing_before": 0, | ||
| "outliers_handled": 0, | ||
| "recommendations": [], | ||
| "rows_after": 25, | ||
| "rows_before": 25, | ||
| "warnings": [] | ||
| } |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.