By Aylmer Ametewee on December 13, 2024
Beginner

Custom POS Duplicate - Receipt

Tax Invoice

{%- if [doc.company](http://doc.company) == "Ceqa Foods & Beverages Ltd" -%} {{ "Pizzaman Chickenman" }} {%- else -%} {{ [doc.company](http://doc.company) }} {%- endif -%}


{% set tin = frappe.db.get\_value("Company", {"name": [doc.company](http://doc.company)},["tax\_id"]) %} TIN: {{ tin }}

Branch: {{ doc.pos\_profile }}

{% set ware = frappe.db.get\_value("POS Profile", {"name": doc.pos\_profile}, ["warehouse"]) %} {% set ph\_no = frappe.db.get\_value("Warehouse", {"name": ware }, ["phone\_no"]) %} Phone No: {{ ph\_no }}

Receipt Status: Paid


{{ *("Cashier") }}: {{ frappe.get*fullname(doc.owner) }}

{{ \_("Receipt No") }}: {{ [doc.name](http://doc.name) }}

{{ *("Customer") }}: {{ doc.customer*name }}

{{ *("Mobile No") }}: {{* [*doc.contact*](http://doc.contact)mobile }}

{{ *("Date") }}: {{ doc.get*formatted("posting\_date") }}

{{ *("Time") }}: {{ doc.get*formatted("posting\_time") }}


{%- for item in doc.items -%} {%- endfor -%}

{{ \_("Item") }}{{ \_("Qty") }}{{ \_("Rate") }}{{ \_("Amount") }}





{{ item.item\_code }} {%- if item.item\_name != item.item\_code -%}{{ item.item\_name }} {%- endif -%} {%- if item.serial\_no -%}{{ \_("[SR.No](http://SR.No)") }}:{{ item.serial\_no | replace("\n", ", ") }} {%- endif -%}{{ item.qty }}{{ item.get\_formatted("rate") }}{{ item.get\_formatted("amount") }}

{% if [doc.flags.show](http://doc.flags.show)\_inclusive\_tax\_in\_print %} {% else %} {% endif %} {%- for row in doc.taxes -%} {%- if not row.included\_in\_print\_rate or [doc.flags.show](http://doc.flags.show)\_inclusive\_tax\_in\_print -%} {%- endif -%} {%- endfor -%} {%- if [doc.discount](http://doc.discount)\_amount -%} {%- endif -%} {% if doc.paid\_amount %} {%- for row in doc.payments -%} {%- endfor -%} {% endif %} {%- if doc.change\_amount -%} {%- endif -%}

{{ \_("Total Excl. Tax") }}{{ doc.get\_formatted("net\_total", doc) }}{{ \_("Total") }}{{ doc.get\_formatted("total", doc) }}
{% if '%' in row.description %} {{ row.description }} {% else %} {{ \_("Delivery Charges") }} {% endif %}{{ row.get\_formatted("tax\_amount", doc) }}

{{ \_("Discount") }}{{ doc.get\_formatted("discount\_amount") }}

{{ \_("Grand Total") }}{{ doc.get\_formatted("grand\_total") }}

{{ row.mode\_of\_payment }}{{ row.get\_formatted("amount", doc) }}

{{ \_("Paid Amount") }}{{ doc.get\_formatted("paid\_amount") }}

{{ \_("Change Amount") }}{{ doc.get\_formatted("change\_amount") }}

{{ doc.terms or "" }}

{{ \_("Thank you, please visit again.") }}

{{ \_("Duplicate Copy") }}

POS Original

Tax Invoice

{%- if [doc.company](http://doc.company) == "Ceqa Foods & Beverages Ltd" -%} {{ "Pizzaman Chickenman" }} {%- else -%} {{ [doc.company](http://doc.company) }} {%- endif -%}


{% set tin = frappe.db.get\_value("Company", {"name": [doc.company](http://doc.company)},["tax\_id"]) %} TIN: {{ tin }}

Branch: {{ doc.pos\_profile }}

{% set ware = frappe.db.get\_value("POS Profile", {"name": doc.pos\_profile}, ["warehouse"]) %} {% set ph\_no = frappe.db.get\_value("Warehouse", {"name": ware }, ["phone\_no"]) %} Phone No: {{ ph\_no }}


Receipt Status: {{ doc.status }}

{{ *("Cashier") }}: {{ frappe.get*fullname(doc.owner) }}

{{ \_("Receipt No") }}: {{ [doc.name](http://doc.name) }}

{{ *("Customer") }}: {{ doc.customer*name }}

{{ *("Mobile No") }}: {{* [*doc.contact*](http://doc.contact)mobile }}

{{ *("Date") }}: {{ doc.get*formatted("posting\_date") }}

{{ *("Time") }}: {{ doc.get*formatted("posting\_time") }}


{%- for item in doc.items -%} {%- endfor -%}

{{ \_("Item") }}{{ \_("Qty") }}{{ \_("Rate") }}{{ \_("Amount") }}





{{ item.item\_code }} {%- if item.item\_name != item.item\_code -%}{{ item.item\_name }} {%- endif -%} {%- if item.serial\_no -%}{{ \_("[SR.No](http://SR.No)") }}:{{ item.serial\_no | replace("\n", ", ") }} {%- endif -%}{{ item.qty }}{{ item.get\_formatted("rate") }}{{ item.get\_formatted("amount") }}

{% if [doc.flags.show](http://doc.flags.show)\_inclusive\_tax\_in\_print %} {% else %} {% endif %} {%- for row in doc.taxes -%} {%- if not row.included\_in\_print\_rate or [doc.flags.show](http://doc.flags.show)\_inclusive\_tax\_in\_print -%} {%- endif -%} {%- endfor -%} {%- if [doc.discount](http://doc.discount)\_amount -%} {%- endif -%} {% if doc.paid\_amount %} {%- for row in doc.payments -%} {%- endfor -%} {% endif %} {%- if doc.change\_amount -%} {%- endif -%}

{{ \_("Total Excl. Tax") }}{{ doc.get\_formatted("net\_total", doc) }}{{ \_("Total") }}{{ doc.get\_formatted("total", doc) }}
{% if '%' in row.description %} {{ row.description }} {% else %} {{ \_("Delivery Charges") }} {% endif %}{{ row.get\_formatted("tax\_amount", doc) }}

{{ \_("Discount") }}{{ doc.get\_formatted("discount\_amount") }}

{{ \_("Grand Total") }}{{ doc.get\_formatted("grand\_total") }}

{{ row.mode\_of\_payment }}{{ row.get\_formatted("amount", doc) }}

{{ \_("Paid Amount") }}{{ doc.get\_formatted("paid\_amount") }}

{{ \_("Change Amount") }}{{ doc.get\_formatted("change\_amount") }}

{{ doc.terms or "" }}

{{ \_("Thank you, please visit again.") }}

{{ \_("Original Copy") }}



More articles on General



More articles on General
Comments

No comments yet.

Add a comment
Ctrl+Enter to add comment