Skip to content

Commit

Permalink
fix: server error while viewing gst e-invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib committed Apr 4, 2022
1 parent 92f632c commit b91bf40
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{%- from "templates/print_formats/standard_macros.html" import add_header, render_field, print_value -%}
{%- set einvoice = json.loads(doc.signed_einvoice) -%}

<div class="page-break">
{% if doc.signed_einvoice %}
{%- set einvoice = json.loads(doc.signed_einvoice) -%}
<div {% if print_settings.repeat_header_footer %} id="header-html" class="hidden-pdf" {% endif %}>
{% if letter_head and not no_letterhead %}
<div class="letter-head">{{ letter_head }}</div>
Expand Down Expand Up @@ -170,4 +171,10 @@ <h5 class="font-bold" style="margin-bottom: 0px;">4. Value Details</h5>
</tbody>
</table>
</div>
{% else %}
<div class="text-center" style="color: var(--gray-500); font-size: 14px;">
You must generate IRN before you can preview GST E-Invoice.
</div>
{% endif %}
</div>

0 comments on commit b91bf40

Please sign in to comment.