From d70cb30c5aadcc4b7bde737d11f60286a56b402f Mon Sep 17 00:00:00 2001
From: Charles
Date: Thu, 8 Jul 2021 23:01:21 +0800
Subject: [PATCH] Add invoice print support for bootstrap theme
---
.../bootstrap/html/mod_invoice_invoice.phtml | 2 +-
.../bootstrap/html/mod_invoice_print.phtml | 267 ++++++++++++++++++
2 files changed, 268 insertions(+), 1 deletion(-)
create mode 100644 src/bb-themes/bootstrap/html/mod_invoice_print.phtml
diff --git a/src/bb-themes/bootstrap/html/mod_invoice_invoice.phtml b/src/bb-themes/bootstrap/html/mod_invoice_invoice.phtml
index 80375a7ce..fde60839b 100755
--- a/src/bb-themes/bootstrap/html/mod_invoice_invoice.phtml
+++ b/src/bb-themes/bootstrap/html/mod_invoice_invoice.phtml
@@ -215,7 +215,7 @@
{% if invoice.status == 'unpaid' %}
{% trans 'Change payment method' %}
{% endif %}
- {% trans 'Download PDF' %}
+ {% trans 'Download PDF' %} {% trans 'Print' %}
diff --git a/src/bb-themes/bootstrap/html/mod_invoice_print.phtml b/src/bb-themes/bootstrap/html/mod_invoice_print.phtml
new file mode 100644
index 000000000..104f7ec2f
--- /dev/null
+++ b/src/bb-themes/bootstrap/html/mod_invoice_print.phtml
@@ -0,0 +1,267 @@
+{% set nr = invoice.serie ~ "%05s"|format(invoice.nr) %}
+{% set seller = invoice.seller %}
+{% set buyer = invoice.buyer %}
+{% set company = guest.system_company %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+