By Ahmed Alkuhlani on October 30, 2021
Intermediate

Add Custom HTML in Print Format


   <div class="margin-top margin-bottom">

       <table class="table table-bordered table-condensed">

           <tr>

               <th>{{_('SL')}}</th>

               <th>{{_('Reference Type')}}</th>

               <th>{{_('Reference Name')}}</th>

               <th>{{_('Outstanding')}}</th>

               <th>{{_('Allocated')}}</th>


           </tr>

           {% for item in doc.references %}

           <tr>

               <td>{{ loop.index }}</td>

               <td>{{ _(item.reference_doctype) }}</td>

               <td>{{ item.reference_name }}</td>

               <td>{{ frappe.format(item.outstanding_amount, 'Currency') }}</td>

               <td>{{ frappe.format(item.allocated_amount, 'Currency') }}</td>


           </tr>

           {% endfor %}

       </table>

   </div>


More articles on Customization



More articles on Customization
Comments

No comments yet.

Add a comment
Ctrl+Enter to add comment