|   | 
    
      
        
          
            
            <%company%>
         <%address%>
            
           | 
            | 
          
            
            Tel: <%tel%>
         Fax: <%fax%>
            
           | 
         
        
          
	    
  
            A P - T R A N S A C T I O N
           | 
         
       
     | 
  
  
    |   | 
    
      
        
          <%name%>
           <%address1%>
	  <%if address2%>
           <%address2%>
	  <%end address2%>
           <%city%> <%state%> <%zipcode%>
	  <%if country%>
	   <%country%>
	  <%end country%>
           
          <%if contact%>
           <%contact%>
           
          <%end contact%>
          <%if customerphone%>
           Tel: <%customerphone%>
          <%end customerphone%>
          <%if customerfax%>
           Fax: <%customerfax%>
          <%end customerfax%>
          <%if email%>
           <%email%>
          <%end email%>
           | 
   
	  
	    
	      
		| Invoice # | 
		<%invnumber%> | 
	       
	      
		| Date | 
		<%invdate%> | 
	       
	      
		| Due | 
		<%duedate%> | 
	       
	      
		| Order # | 
		<%ordnumber%>  | 
	       
	      
		| Employee | 
		<%employee%>  | 
	       
	     
	   | 
         
       
     | 
  
  
  
  
    |   | 
  
    
      
        
	  
	    
	      <%foreach account%>
	      
		| <%accno%> | 
		<%account%> | 
		<%amount%> | 
		<%projectnumber%> | 
	       
	      <%end account%>
	      
		<%if taxincluded%>
		| Total | 
		<%invtotal%> | 
		<%end taxincluded%>
		<%if not taxincluded%>
		Subtotal | 
		<%subtotal%> | 
		<%end taxincluded%>
	       
	      <%foreach tax%>
	      
		| <%taxdescription%> @ <%taxrate%> % | 
		<%tax%> | 
	       
	      <%end tax%>
	      
	      <%if not taxincluded%>
		Total | 
		<%invtotal%> | 
	      <%end taxincluded%>
	     
	   | 
	  
	    <%notes%>
	   | 
	 
       
     | 
  
    |   | 
    
  
  
    |   | 
    
      <%text_amount%> ***** <%decimal%>/100 <%currency%>
     | 
  
  <%if paid%>
  
    |   | 
    
      
        
          | Payments | 
         
        
          
           
           | 
         
	
	  
	    
	      
		| Date | 
		Account | 
		Source | 
		Memo | 
		Amount | 
	       
  <%end paid%>
        <%foreach payment%>
	      
		| <%paymentdate%> | 
		<%paymentaccount%> | 
		<%paymentsource%> | 
		<%paymentmemo%> | 
		<%payment%> | 
	       
        <%end payment%>
  <%if paid%>
	     
	   | 
         
       
     | 
  
  <%end paid%>
  
  <%if taxincluded%>
  
    |   | 
  
  
    | Taxes shown are included in price. | 
  
  <%end taxincluded%>