Party money counts cash paying down a liability (reimbursements, card payments)
check / check (push) Canceled after 0s
check / check (push) Canceled after 0s
ledger_core::parties::entry_flow: cash lines count; liability lines count except the part paired against cash in the same entry, which counts once as paid to the liability's creditor (or received from a lender). A reimbursement to the members no longer nets to zero. What-for breakdown comes from the same function and sums to the net exactly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GWVo7x3UHw5kwCUaWxiejX
This commit is contained in:
1 parent
ae927c3f73
commit
df3fc3f4e4
4 files changed
+233
-56
No files matched your search
@@ -2853,17 +2853,17 @@ pub struct ListPartiesOut {
|
||||
/// the payments received on them, and reversals of any of these. Only
|
||||
/// posted entries dated in the calendar year count.
|
||||
///
|
||||
/// Money lines are the lines on the money accounts: the `[books]
|
||||
/// cash_accounts` (every asset account but receivables when none are set)
|
||||
/// and every liability account except the payables and payroll
|
||||
/// withholding accounts (the control roles in `books.roles`: 2000 and
|
||||
/// 2110-2150 by default). A liability counts because it is how the
|
||||
/// company paid or was paid: a card, a member paying for it, a loan. Each
|
||||
/// entry's net is its money lines' credits minus their debits: a positive
|
||||
/// net was paid to the party, a negative one received from it; a reversal
|
||||
/// counts against its original's side. An entry that only moves money
|
||||
/// between money accounts (borrowing, a customer's deposit booked to a
|
||||
/// liability) nets to zero. A bill is not paid until its payment is.
|
||||
/// Each entry's money is `ledger_core::parties::entry_flow`: what left or
|
||||
/// reached the `[books] cash_accounts` (every asset account but
|
||||
/// receivables when none are set), plus what the company paid through a
|
||||
/// liability (a card, a member paying for it, a loan; not payables or
|
||||
/// payroll withholdings), with cash that pays a liability down counting
|
||||
/// once, as paid to that liability's creditor (a reimbursement to the
|
||||
/// members, a card payment to the issuer), and cash raised by a liability
|
||||
/// counting as received from the lender. Positive is paid to the party,
|
||||
/// negative received from it; a reversal counts against its original's
|
||||
/// side. A transfer between the company's own cash accounts nets to zero.
|
||||
/// A bill is not paid until its payment is.
|
||||
/// (`ledger_core::parties::activity` computes it; the viewer shows the
|
||||
/// same numbers.)
|
||||
#[derive(Debug, Clone, Serialize, JsonSchema)]
|
||||
|
||||
Reference in new issue
Block a user