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.
This commit is contained in:
		
							parent
							
								
									9f9ba87e52
								
							
						
					
					
						commit
						3569620d0f
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -18,7 +18,10 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
; Shared Asset Accounts
 | 
					; Shared Asset Accounts
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define assetChecker(amt) = (amt > -10.00 or (tag("TaxImplication") !~ /^\s*$/ and tag("Entity") !~ /^\s*$/))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
account Asset:Checking
 | 
					account Asset:Checking
 | 
				
			||||||
 | 
					   assert assetChecker(amount)
 | 
				
			||||||
   note Checking account for entire organization
 | 
					   note Checking account for entire organization
 | 
				
			||||||
   assert commodity == "$"
 | 
					   assert commodity == "$"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue