refactor: merge print settings custom fields
diff --git a/erpnext/setup/install.py b/erpnext/setup/install.py
index 1d7bad2..1d95ddb 100644
--- a/erpnext/setup/install.py
+++ b/erpnext/setup/install.py
@@ -21,9 +21,7 @@
def after_install():
frappe.get_doc({'doctype': "Role", "role_name": "Analytics"}).insert()
set_single_defaults()
- create_compact_item_print_custom_field()
- create_print_uom_after_qty_custom_field()
- create_print_zero_amount_taxes_custom_field()
+ create_print_setting_custom_fields()
add_all_roles_to("Administrator")
create_default_cash_flow_mapper_templates()
create_default_success_action()
@@ -77,7 +75,7 @@
except frappe.ValidationError:
pass
-def create_compact_item_print_custom_field():
+def create_print_setting_custom_fields():
create_custom_field('Print Settings', {
'label': _('Compact Item Print'),
'fieldname': 'compact_item_print',
@@ -85,9 +83,6 @@
'default': 1,
'insert_after': 'with_letterhead'
})
-
-
-def create_print_uom_after_qty_custom_field():
create_custom_field('Print Settings', {
'label': _('Print UOM after Quantity'),
'fieldname': 'print_uom_after_quantity',
@@ -95,9 +90,6 @@
'default': 0,
'insert_after': 'compact_item_print'
})
-
-
-def create_print_zero_amount_taxes_custom_field():
create_custom_field('Print Settings', {
'label': _('Print taxes with zero amount'),
'fieldname': 'print_taxes_with_zero_amount',