Nikhil
                
              
                
                
              
                  
                  
              1
              
             
            
              Hi Team,
How to fetch the Keys, values & namespace from the Disallowed expenses template (handle name : 2018_disallowed_expenses).

I tried the solution mentioned in the ticket : Link But, it is not displaying any values.
Can you help me, please?
Thanks in advance.
Kind regards,
Nikhil
             
            
              
              
              1 Like
            
            
           
          
            
            
              @Nikhil
Details of “Non-deductible taxes” from Disallowed expenses template can be accessed:
Option 1:
{% stripnewlines %}
{% for item in period.reconciliations.2018_disallowed_expenses.custom.non_deduct_taxes %}
  {{ item.description }} {{ item.value | currency:2 }}{% newline %}
{% endfor %}
{% endstripnewlines %}
Option 2:
{% stripnewlines %}
{% for item in (1..5) %}
  {% capture key_value %}non_deduct_tax_{{ INT(item) }}{% endcapture %}
  {% if period.reconciliations.2018_disallowed_expenses.custom.non_deduct_taxes.[key_value] != blank %}
    {{ period.reconciliations.2018_disallowed_expenses.custom.non_deduct_taxes.[key_value].description }} {{ period.reconciliations.2018_disallowed_expenses.custom.non_deduct_taxes.[key_value].value | currency:2 }}{% newline %}
  {% endif %}
{% endfor %}
{% endstripnewlines %}
Please let me know if this solution works.
             
            
              
              
              1 Like
            
            
           
          
            
              
                Nikhil
                
              
              
                  
                  
              3
              
             
            
              @Jelena_Sutova
Above solution works. Thanks a lot.