Skip to content

Commit

Permalink
show the bill if no customer address is filled
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Förster committed Oct 15, 2024
1 parent 4304c4c commit 9d474f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion print_format/sales_invoice.jinja
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% set company = frappe.get_doc("Company", doc.company) %}
{% set cmp_addr = frappe.get_doc("Address", doc.company_address) if doc.company_address else None %}
{% set pay_addr = frappe.get_doc("Address", doc.customer_address) %}
{% set pay_addr = frappe.get_doc("Address", doc.customer_address) if doc.customer_address else None %}

{% if doc.contact_person %}
{% set contact = frappe.get_doc("Contact", doc.contact_person) %}
Expand Down
2 changes: 1 addition & 1 deletion print_format/sales_order.jinja
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% set company = frappe.get_doc("Company", doc.company) %}
{% set cmp_addr = frappe.get_doc("Address", doc.company_address) if doc.company_address else None %}
{% set pay_addr = frappe.get_doc("Address", doc.customer_address) %}
{% set pay_addr = frappe.get_doc("Address", doc.customer_address) if doc.customer_address else None %}

{% if doc.contact_person %}
{% set contact = frappe.get_doc("Contact", doc.contact_person) %}
Expand Down

0 comments on commit 9d474f1

Please sign in to comment.