[Custom Theme] How can i get the Total amount of credit in Journal Entry

[Custom Theme] How can i get the Total amount of credit in Journal Entry

I try to making a custom theme for printing my cheque

As I try to use the default custom theme in Journal Entry, it doesn’t show the value.

So I cannot get the code in it. plx help and thanks

<table style="width: 100%; border-collapse: collapse; height: 100px; margin: 0px auto;">
    <tbody>
        <tr>
            <td style="width: 6.6434%;"><br></td>
            <td style="width: 17.6573%;"><br></td>
            <td style="width: 45.3963%;"><br></td>
            <td style="width: 30.2175%;">{{date}}</td>
        </tr>
        <tr>
            <td style="width: 6.6434%;"><span style="font-family: 'Trebuchet MS', Helvetica, sans-serif;"><br></span></td>
            <td style="width: 17.6573%;">
                <div><span style="font-family: 'Trebuchet MS', Helvetica, sans-serif;">        
                {% for field in custom_fields limit:1 %}   
                <div style="padding-bottom: 5px">{{ field.text | newline_to_br }}</div>                
                {% endfor %}</span></div>
            </td>
            <td style="width: 45.3963%;">
                <div id="payee"><span style="font-family: 'Trebuchet MS', Helvetica, sans-serif;"><br></span></div>
            </td>
            <td style="width: 30.2175%;"><span style="font-family: 'Trebuchet MS', Helvetica, sans-serif;"><br></span></td>
        </tr>
        

        <tr>
            <td style="width: 6.6434%;"><span style="font-family: 'Trebuchet MS', Helvetica, sans-serif;"><br></span></td>
            <td style="width: 17.6573%;"><span style="font-family: 'Trebuchet MS', Helvetica, sans-serif;"><strong>THE SUM OF HK$</strong></span></td>
            <td style="width: 45.3963%;"><span style="font-family: 'Trebuchet MS', Helvetica, sans-serif;">
            </span></td>
            <td style="width: 17.6573%;"><span style="font-family: 'Trebuchet MS', Helvetica, sans-serif;"></span></td>
        </tr>
    </tbody>

</table>

Forum rules require that you post the code for your best attempt at a custom theme as well as the results.

I also wonder why you are trying to print a cheque from a journal entry? You cannot use journal entries in Manager for transactions involving the movement of money into or out of the business. You should use a payment.

Updated