diff --git a/bloomstack_core/__init__.py b/bloomstack_core/__init__.py index d35d99f0..fc07715e 100644 --- a/bloomstack_core/__init__.py +++ b/bloomstack_core/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -__version__ = '2.2.1' +__version__ = '2.3.2' diff --git a/bloomstack_core/hook_events/item.py b/bloomstack_core/hook_events/item.py index 1a977b79..d3458fa8 100644 --- a/bloomstack_core/hook_events/item.py +++ b/bloomstack_core/hook_events/item.py @@ -17,9 +17,14 @@ def create_integration_request(doc, method): @frappe.whitelist() def autoname_item(item): - item = frappe._dict(json.loads(item)) - item_code = autoname(item) - return item_code + config = frappe.get_site_config() or frappe._dict() + + if config.enforce_item_code_naming == True or config.enforce_item_code_naming == None: + item = frappe._dict(json.loads(item)) + item_code = autoname(item) + return item_code + + return item.item_code def autoname(item, method=None): diff --git a/bloomstack_core/public/css/authorize_document.css b/bloomstack_core/public/css/authorize_document.css index 913b4219..f203fe64 100644 --- a/bloomstack_core/public/css/authorize_document.css +++ b/bloomstack_core/public/css/authorize_document.css @@ -99,6 +99,18 @@ -webkit-print-color-adjust: exact; } +.print-format, .print-format h1, .print-format h2, .print-format h3, .print-format p, .print-format td, .print-format th { + color: black; +} + +.print-format .bill-ship-section { + display: flex; +} + +.print-format .bill-ship-section > * { + flex: 1 1 auto; +} + .page-break { page-break-after: always; } @@ -317,4 +329,4 @@ ul.actions li a.approveBtn { #signeeName { text-align: center; margin-bottom: 15px; -} \ No newline at end of file +}