anchor.diff:     ledger = nil
   
      
  -
  +    diff = 0
   
      @ops.each do
        |op| 
   
  -
        if ledger != op.ledger and ledger != nil then
  -       footer
  +       footer(diff)
        end
   
        if ledger != op.ledger then
  
positive.code: 
     end
  
    if ledger != nil then footer end
  
  %>
  
  
  
negative.code:     <td class='number'>
        <%= num_format(op.amount > 0 ? op.amount : "") %>
      </td>
      <%     diff += op.amount  %>
      <td class='number'>
        <%= op.amount < 0 ? op.amount : "" %>
      </td>
  