---
name: purchase-receipt
title: Receipt
description: Purchase receipt template for retail transactions
category: receipts
locale: en
layout: receipt
outputFormat: pdf
pageSize: A4
orientation: portrait
metadata:
  author: Plyaz Storage Package
  subject: Receipt
---

## Items Purchased

| Item | Price |
|------|-------|
{{#each items}}
| {{name}} {{#if quantity}}x{{quantity}}{{/if}} | {{formatCurrency price}} |
{{/each}}

---

<div class="totals">
  <div class="totals-row">
    <span>Subtotal:</span>
    <span>{{formatCurrency (receiptTotal items taxRate discount "subtotal")}}</span>
  </div>
  {{#if taxRate}}
  <div class="totals-row">
    <span>Tax ({{taxRate}}%):</span>
    <span>{{formatCurrency (receiptTotal items taxRate discount "tax")}}</span>
  </div>
  {{/if}}
  {{#if discount}}
  <div class="totals-row">
    <span>Discount:</span>
    <span>-{{formatCurrency discount}}</span>
  </div>
  {{/if}}
  <div class="totals-row total">
    <span><strong>TOTAL:</strong></span>
    <span><strong>{{formatCurrency (receiptTotal items taxRate discount "total")}}</strong></span>
  </div>
</div>

---

{{#if paymentMethod}}
**Payment Method:** {{paymentMethod}}
{{/if}}

{{#if changeGiven}}
**Cash Tendered:** {{formatCurrency cashTendered}}
**Change:** {{formatCurrency changeGiven}}
{{/if}}
