[% 'Notes (will appear on hard copy)' | $T8 %] 
         [% 'Internal Notes' | $T8 %] 
         [% 'Payment / Delivery Options' | $T8 %] 
         
        
         
          
          
         
          
          
         
           
             
               [% 'Payment Terms' | $T8 %] 
               
                 [%- INCLUDE 'generic/multibox.html'
                   name          = 'payment_id',
                   style         = 'width: 250px',
                   DATA          = payment_terms,
                   id_key        = 'id',
                   label_key     = 'description',
                   show_empty    = 1
                   allow_textbox = 0 -%]
                 
                
              
             
               [% 'Delivery Terms' | $T8 %]  
               
                 [% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]
                
              
             
               [% 'direct debit' | $T8 %] 
               
                 [%- L.checkbox_tag('direct_debit', 'checked', direct_debit) %]
                
              
           
          
         
[%- IF id && follow_ups.size %]
        
          
            [%- LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size, follow_ups_unfinished) | html %]
           
          
[%- END %]
       
       
[%- IF show_weight %]
      
       
        
         [% 'Total weight' | $T8 %] 
         
          [% LxERP.format_amount(totalweight) %] [% HTML.escape(weightunit) %]
          
         
       
       
[%- END %]
      
       
        
         [% 'Ertrag' | $T8 %] 
         
          [% LxERP.format_amount(marge_total, 2, 0) %]
           
          
         
        
         [% 'Ertrag prozentual' | $T8 %] 
         
          [% LxERP.format_amount(marge_percent, 2, 0) %] %
           
          
         
       
       
      
  [%- IF taxaccounts %]
        
        
       [% 'Tax Included' | $T8 %] 
        
        
  [%- END %]
       
[%- UNLESS taxincluded %]
        
         [% 'Subtotal' | $T8 %] 
         [% LxERP.format_amount(invsubtotal, 2) %] 
        
[%- END %]
[%# tax %]
[% FOREACH item = taxaccounts_array %]
[% SET description_ref = item _ '_description' %]
[% SET rate_ref        = item _ '_rate' %]
[% SET total_ref       = item _ '_total' %]
[% SET netto_ref       = item _ '_netto' %]
       
        [% 'Including' | $T8 %] [% $description_ref | html %] [% $rate_ref * 100 %]% 
        [% LxERP.format_amount($total_ref, 2) %] 
        
  [%- IF taxincluded %]
       
        [% 'Net amount' | $T8 %] 
        [% LxERP.format_amount($netto_ref, 2) %] 
        
  [%- END %]
[%- END %]
        
         [% 'Total' | $T8 %] 
         [% LxERP.format_amount(invtotal, 2) %]