| [% 'Previous transnumber text' | $T8 %] [% previous_id  %] . [% 'Previous transdate text' | $T8 %] [% previous_gldate %] | 
        
        
          | [% 'Reference' | $T8 %] | 
          [% L.input_tag('reference', reference,  size=20, readonly=readonly) %] | 
          [% 'Transdate' | $T8 %] | 
          [% L.date_tag('transdate', transdate, readonly=readonly) %] | 
        
[%- IF id %]
        
          | [% 'ID' | $T8 %] | 
          [% id %] | 
          [% 'Gldate' | $T8 %] | 
          [% L.date_tag('gldate', gldate, readonly=1) %]  | 
        
[%- END %]
        [% SET departments_style = "";
           SET departments_style = "style='visibility:hidden'" IF ALL_DEPARTMENTS.size == 0 %]
        
          | [% 'Department' | $T8 %] | 
          [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %] | 
          [% 'Tax point' | $T8 %] | 
          [% L.date_tag('tax_point', tax_point) %] | 
        
        
          | [% 'Description' | $T8 %] | 
          [% L.areainput_tag('description', description, cols=50, readonly=readonly) %] | 
          [% 'Delivery Date' | $T8 %] | 
          [% L.date_tag('deliverydate', deliverydate) %] | 
        
        
          | [%- IF id %][% 'Mitarbeiter' | $T8 %][% END %] | 
          [%- IF id %][% L.input_tag('employee', employee, size=20, readonly=readonly) %][% END %] | 
          [% 'MwSt. inkl.' | $T8 %] | 
          [% L.checkbox_tag('taxincluded', checked=taxincluded) %] | 
        
      
       | 
         [% 'OB Transaction' | $T8 %] [% L.checkbox_tag('ob_transaction' checked=ob_transaction) %]
         [% 'CB Transaction' | $T8 %] [% L.checkbox_tag('cb_transaction' checked=cb_transaction) %]
        | 
      
      
       | [% 'Show details' | $T8 %] | 
       [% L.checkbox_tag('show_details', checked=show_details, onclick='show_form_details();') %] | 
      
      
      
          
           
          | [% 'Account' | $T8 %] | 
          [% 'Chart balance' | $T8 %] | 
          [% 'Debit' | $T8 %] | 
          [% 'Credit' | $T8 %] | 
          [% 'Tax' | $T8 %] | 
          [% 'Taxkey' | $T8 %] | 
[%- IF show_details %]
          [% 'Source' | $T8 %] | 
          [% 'Memo' | $T8 %] | 
          [% 'Project Number' | $T8 %] | 
[%- END %]
         
  |