You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to refine how we bridge Lightning infrastructure to financial reporting.
The raw output of Core Lightning’s bookkeeper plugin should map to the journal entries, GL accounts, and audit controls required for US GAAP-compliant financial statements. The current QuickBooks export has 4 columns; finance requires a 9-column format that the updated bkpr-dumpincomecsv command must produce.
New .csv format requirement
Column 1: Date column: No change
Column 2: Separate Tag columns: Column name: Tag.
Right now the event type (invoice, routed, onchain_fee, etc.) is buried inside the Description string. This needs to be its own column to map transactions to general ledger accounts automatically. Need to create a new column and extract the event type from the existing 'description' column: invoice, invoice_fee, routed, deposit, withdrawal, onchain_fee, channel_open, channel_close, lease_fee, penalty, etc.
Column 3: The channel ID or "wallet": Column name: Account.
This is currently buried in Description as "(channelid...)". Needed for per-channel reconciliation and sub-ledger mapping.
Column 4: Currently: "invoice (channelid...) btc: description text".
Remove the tag prefix, account ID, and "btc:" prefix. Keep just the human-readable text. When no description exists, include the payment_id or txid as the fallback identifier.
Column 5: Credit (BTC): Already converts from msat to BTC.
Fix scientific notation issue — some routing fees export as '2E-11' which breaks QuickBooks import. Always use decimal format.
Column 6: Debit (BTC): Same scientific notation fix needed as Column 5
Column 8: New Column: Column Name Credit (USD)
Credit (BTC) × BTC/USD Price. Pre-calculated USD value. Under ASU 2023-08 and ASC 830, all BTC transactions must be translated to USD for the GL.
Column 9: New Column: Column Name Debit (USD)
Debit (BTC) × BTC/USD Price. Same as above for debits.
We need to refine how we bridge Lightning infrastructure to financial reporting.
The raw output of Core Lightning’s bookkeeper plugin should map to the journal entries, GL accounts, and audit controls required for US GAAP-compliant financial statements. The current QuickBooks export has 4 columns; finance requires a 9-column format that the updated bkpr-dumpincomecsv command must produce.
New .csv format requirement
Right now the event type (invoice, routed, onchain_fee, etc.) is buried inside the Description string. This needs to be its own column to map transactions to general ledger accounts automatically. Need to create a new column and extract the event type from the existing 'description' column: invoice, invoice_fee, routed, deposit, withdrawal, onchain_fee, channel_open, channel_close, lease_fee, penalty, etc.
This is currently buried in Description as "(channelid...)". Needed for per-channel reconciliation and sub-ledger mapping.
Remove the tag prefix, account ID, and "btc:" prefix. Keep just the human-readable text. When no description exists, include the payment_id or txid as the fallback identifier.
Fix scientific notation issue — some routing fees export as '2E-11' which breaks QuickBooks import. Always use decimal format.
The BTC/USD spot price at the time of the transaction.
(bookkeeper needs to record the currency conversion rate at the time of each event #8915 )
Credit (BTC) × BTC/USD Price. Pre-calculated USD value. Under ASU 2023-08 and ASC 830, all BTC transactions must be translated to USD for the GL.
Debit (BTC) × BTC/USD Price. Same as above for debits.