From 3569620d0f5eaabe8bcdebe0766a9a7f281be806 2013-05-10 20:54:44 From: Bradley M. Kuhn Date: 2013-05-10 20:54:44 Subject: [PATCH] Require and Entity and TaxImplication tag for outgoing payments over $10. This now enforces what was said in the documentation in the previous commit: The `TaxImplication:` tag is used for all `Asset:` accounts when the transaction includes a payment of $10.00 or more leaving the account. .... An [`Entity:` tag](entity-tag) should always go along with a TaxImplication tag. --- diff --git a/accounts/config/config-accounts.ledger b/accounts/config/config-accounts.ledger index c51cf3ad682b3484fa69132ebb65580c8c30f800..f0fd4d023386de209107d80b6318fe82a350b977 100644 --- a/accounts/config/config-accounts.ledger +++ b/accounts/config/config-accounts.ledger @@ -18,7 +18,10 @@ ; Shared Asset Accounts +define assetChecker(amt) = (amt > -10.00 or (tag("TaxImplication") !~ /^\s*$/ and tag("Entity") !~ /^\s*$/)) + account Asset:Checking + assert assetChecker(amount) note Checking account for entire organization assert commodity == "$"