Changeset - a274533f0258
[Not reviewed]
0 1 0
Bradley Kuhn (bkuhn) - 11 years ago 2013-04-29 20:09:29
bkuhn@ebb.org
Properly declare Receipt, Invoice, and Statement tags.

The Statement, Receipt, and Invoice tags' values should always a be a
relative path names. Note that we "check", but do not "assert" that the file
name match a standard Unix-like path syntax, without spaces in the file name.
1 file changed with 18 insertions and 0 deletions:
0 comments (0 inline, 0 general)
accounts/config/config-npo.ledger
Show inline comments
...
 
@@ -19,6 +19,24 @@ commodity $
 
   format $1,000.00
 
   nomarket
 

	
 
;  ################################# TAGS ################################
 

	
 
; The Statement, Receipt, and Invoice tags' values should always a be a
 
; relative path names.  Note that we "check", but do not "assert" that the
 
; file name match a standard Unix-like path syntax, without spaces in the
 
; file name.
 

	
 
tag Statement
 
    assert value =~ /[^\/].+/
 
    check value =~ /[^\/][^ ]+(\/[^ ])+/
 

	
 
tag Receipt
 
    assert value =~ /[^\/].+/
 
    check value =~ /[^\/][^ ]+(\/[^ ])+/
 

	
 
tag Invoice
 
    assert value =~ /[^\/].+/
 
    check value =~ /[^\/][^ ]+(\/[^ ])+/
 

	
 
; ##############################  GENERAL/SHARED ACCOUNTS #######################
 

	
0 comments (0 inline, 0 general)