{%- from "templates/print_formats/standard_macros.html" import add_header, render_field, print_value -%} {%- set einvoice = json.loads(doc.signed_einvoice) -%}
{{ seller.Gstin }}
{{ seller.LglNm }}
{{ seller.Addr1 }}
{%- if seller.Addr2 -%}{{ seller.Addr2 }}
{% endif %}{{ seller.Loc }}
{{ frappe.db.get_value("Address", doc.company_address, "gst_state") }} - {{ seller.Pin }}
{%- if einvoice.ShipDtls -%} {%- set shipping = einvoice.ShipDtls -%}{{ shipping.Gstin }}
{{ shipping.LglNm }}
{{ shipping.Addr1 }}
{%- if shipping.Addr2 -%}{{ shipping.Addr2 }}
{% endif %}{{ shipping.Loc }}
{{ frappe.db.get_value("Address", doc.shipping_address_name, "gst_state") }} - {{ shipping.Pin }}
{% endif %}{{ buyer.Gstin }}
{{ buyer.LglNm }}
{{ buyer.Addr1 }}
{%- if buyer.Addr2 -%}{{ buyer.Addr2 }}
{% endif %}{{ buyer.Loc }}
{{ frappe.db.get_value("Address", doc.customer_address, "gst_state") }} - {{ buyer.Pin }}
Sr. No. | Item | HSN Code | Qty | UOM | Rate | Discount | Taxable Amount | Tax Rate | Other Charges | Total |
---|---|---|---|---|---|---|---|---|---|---|
{{ item.SlNo }} | {{ item.PrdDesc }} | {{ item.HsnCd }} | {{ item.Qty }} | {{ item.Unit }} | {{ frappe.utils.fmt_money(item.UnitPrice, None, "INR") }} | {{ frappe.utils.fmt_money(item.Discount, None, "INR") }} | {{ frappe.utils.fmt_money(item.AssAmt, None, "INR") }} | {{ item.GstRt + item.CesRt }} % | {{ frappe.utils.fmt_money(0, None, "INR") }} | {{ frappe.utils.fmt_money(item.TotItemVal, None, "INR") }} |
Taxable Amount | CGST | SGST | IGST | CESS | State CESS | Discount | Other Charges | Round Off | Total Value |
---|---|---|---|---|---|---|---|---|---|
{{ frappe.utils.fmt_money(value_details.AssVal, None, "INR") }} | {{ frappe.utils.fmt_money(value_details.CgstVal, None, "INR") }} | {{ frappe.utils.fmt_money(value_details.SgstVal, None, "INR") }} | {{ frappe.utils.fmt_money(value_details.IgstVal, None, "INR") }} | {{ frappe.utils.fmt_money(value_details.CesVal, None, "INR") }} | {{ frappe.utils.fmt_money(0, None, "INR") }} | {{ frappe.utils.fmt_money(value_details.Discount, None, "INR") }} | {{ frappe.utils.fmt_money(value_details.OthChrg, None, "INR") }} | {{ frappe.utils.fmt_money(value_details.RndOffAmt, None, "INR") }} | {{ frappe.utils.fmt_money(value_details.TotInvVal, None, "INR") }} |