| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <templates id="template" xml:space="preserve"> |
| 3 | <t t-name="l10n_in_pos.ReceiptHeader" t-inherit="point_of_sale.ReceiptHeader" t-inherit-mode="extension"> |
| 4 | <xpath expr="//div[hasclass('pos-receipt-customer')]" position="inside"> |
| 5 | <t t-if="order.partner_id and order.company?.country_id?.code == 'IN'"> |
| 6 | <t t-if="order.partner_id.phone"> |
| 7 | <div> |
| 8 | <span>Phone: </span> |
| 9 | <t t-out="order.partner_id.phone" /> |
| 10 | </div> |
| 11 | </t> |
| 12 | <br /> |
| 13 | </t> |
| 14 | </xpath> |
| 15 | <xpath expr="//span[hasclass('pos-receipt-vat')]" position="after"> |
| 16 | <span t-if="order.isInCompany and !order.isToInvoice()" class="pos-receipt-vat"> |
| 17 | INVOICE <t t-esc="order.invoiceName" /> |
| 18 | </span> |
| 19 | </xpath> |
| 20 | <xpath expr="//span[@class='ticket-name-prefix']" position="attributes"> |
| 21 | <attribute name="t-if">!order.isInCompany</attribute> |
| 22 | </xpath> |
| 23 | <xpath expr="//span[@class='ticket-name-prefix']" position="after"> |
| 24 | <span t-if="order.isInCompany" class="ticket-name-prefix"> |
| 25 | Tax Invoice |
| 26 | </span> |
| 27 | </xpath> |
| 28 | </t> |
| 29 | |
| 30 | <t t-name="l10n_in_pos.OrderReceipt" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension"> |
| 31 | <xpath expr="//Orderline" position="inside"> |
| 32 | <t t-if="line.l10n_in_hsn_code and header.company.country_id?.code === 'IN'"> |
| 33 | <div class="pos-receipt-left-padding"> |
| 34 | <span>HSN Code: </span> |
| 35 | <t t-out="line.l10n_in_hsn_code"/> |
| 36 | </div> |
| 37 | </t> |
| 38 | </xpath> |
| 39 | <xpath expr="//div[@class='before-footer']" position="after"> |
| 40 | <t t-set="l10n_in_hsn_summary" t-value="order._prepareL10nInHsnSummary()"/> |
| 41 | <table t-if="l10n_in_hsn_summary and header.company.country_id?.code === 'IN' and l10n_in_hsn_summary.items.length > 0" |
| 42 | class="l10n_in_hsn_summary_table pt-3 w-100"> |
| 43 | <tr> |
| 44 | <th class="text-center fw-bolder" colspan="6">HSN Summary</th> |
| 45 | </tr> |
| 46 | <tr> |
| 47 | <th class="text-center">HSN Code</th> |
| 48 | <th class="text-center">Rate%</th> |
| 49 | <th class="text-center" t-if="l10n_in_hsn_summary.has_gst">CGST</th> |
| 50 | <th class="text-center" t-if="l10n_in_hsn_summary.has_gst">SGST</th> |
| 51 | <th class="text-center" t-if="l10n_in_hsn_summary.has_igst">IGST</th> |
| 52 | <th class="text-center" t-if="l10n_in_hsn_summary.has_cess">CESS</th> |
| 53 | </tr> |
| 54 | <tr t-foreach="l10n_in_hsn_summary.items" t-as="item" t-key="item_index"> |
| 55 | <td class="text-center" t-out="item.l10n_in_hsn_code"/> |
| 56 | <td class="text-center"><t t-out="item.rate"/> %</td> |
| 57 | <td class="text-center" t-if="l10n_in_hsn_summary.has_gst" t-out="item.tax_amount_cgst"/> |
| 58 | <td class="text-center" t-if="l10n_in_hsn_summary.has_gst" t-out="item.tax_amount_sgst"/> |
| 59 | <td class="text-center" t-if="l10n_in_hsn_summary.has_igst" t-out="item.tax_amount_igst"/> |
| 60 | <td class="text-center" t-if="l10n_in_hsn_summary.has_cess" t-out="item.tax_amount_cess"/> |
| 61 | </tr> |
| 62 | </table> |
| 63 | </xpath> |
| 64 | </t> |
| 65 | </templates> |