Skip to content

spec(glue): conditional posting rule column (rule(by:, cases:, default:)) - #6

Open
delchev wants to merge 1 commit into
mainfrom
spec/posting-conditional-rule
Open

spec(glue): conditional posting rule column (rule(by:, cases:, default:))#6
delchev wants to merge 1 commit into
mainfrom
spec/posting-conditional-rule

Conversation

@delchev

@delchev delchev commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

A posting item's account column may be chosen by a source classifier instead of duplicating the whole item row per case:

items:
  - { Account: "rule(by: Method, cases: { 1: BankAccount, 2: CashAccount }, default: SuspenseAccount)", debit: "Amount" }

Mirrors the by/cases/default classifier shape a conditional value-copy already uses, and extends the plain rule(<column>) idiom. No match and no default — or a null selected column — skips the posting to the unposted worklist; a conditional cell cannot also carry a row when.

Leaving open for the maintainer.

…t:))

An item's account column may be chosen by a source classifier - by/cases/default,
the same shape a conditional value-copy uses - instead of duplicating the row per
case. No match / null selected column skips to the unposted worklist; a conditional
cell cannot also carry a row when.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant