diff --git a/frappe/printing/page/print/print.js b/frappe/printing/page/print/print.js
index 5d682e41f3..9e3d4b64d3 100644
--- a/frappe/printing/page/print/print.js
+++ b/frappe/printing/page/print/print.js
@@ -504,7 +504,6 @@ frappe.ui.form.PrintView = class {
const get_options = frappe.ui.form.ControlBarcode.prototype.get_options.bind({
df: { options: el.dataset.options },
});
- console.log(get_options(el.dataset.barcodeValue));
JsBarcode(el, el.dataset.barcodeValue, get_options(el.dataset.barcodeValue));
el.setAttribute("width", "100%");
});
diff --git a/frappe/templates/print_formats/standard_macros.html b/frappe/templates/print_formats/standard_macros.html
index 5fb9d608bb..b5fb774e00 100644
--- a/frappe/templates/print_formats/standard_macros.html
+++ b/frappe/templates/print_formats/standard_macros.html
@@ -157,7 +157,7 @@ data-fieldname="{{ df.fieldname }}" data-fieldtype="{{ df.fieldtype }}"
{% elif df.fieldtype=="Signature" %}
- {% elif df.fieldtype=="Barcode" %}
+ {% elif df.fieldtype=="Barcode" and not doc[df.fieldname].startswith("
{% elif df.fieldtype in ("Attach", "Attach Image") and frappe.utils.is_image(doc[df.fieldname]) %}
