Dual currency invoice with two amounts payable
Last updated: 2021-11-09
To create an invoice template with two amounts (in two currencies) to pay, you need to add a new template and in it:
- find the following code snippet:
         <tr class="inv_to_pay">    
            <th width="10">{{tt "invoice.to_pay"}}:</th>
            <td>{{outstanding}}</td>
        </tr>
        
        {{#if outstanding_in_words}}                
            <tr class="inv_to_pay">
                <th width="10">{{tt "invoice.in_words"}}:</th>
                <td>{{{outstanding_in_words}}}</td>
            </tr>                    
        {{/if}}
 
- and replace it with this one:
  <tr class="inv_to_pay">    
            <th width="10">{{tt "invoice.to_pay"}}:</th>
            <td>{{outstanding}}</td>
          </tr>
          <tr>
            <td></td>
            <td>{{outstanding_in_exchange_currency}}</td>
          </tr>        
          {{#if outstanding_in_words}}
          <tr class="inv_to_pay">
            <th width="10">{{tt "invoice.in_words"}}:</th>
            <td>{{{outstanding_in_words}}}</td>
          </tr>                    
          {{/if}}
          {{#if outstanding_in_words_in_exchange_currency}}
          <tr class="inv_to_pay">
            <th width="10"></th>
            <td>{{{outstanding_in_words_in_exchange_currency}}}</td>
          </tr>                    
          {{/if}}
The invoice looks as follows:

Back

 
            
Comments
Add Comment