fix(ksa): enable ksa pos invoice print format (backport #28911)

This commit is contained in:
mergify[bot]
2021-12-17 15:27:05 +05:30
committed by GitHub
parent 349785dcbd
commit 9c2a9c28df
2 changed files with 4 additions and 1 deletions

View File

@@ -336,4 +336,4 @@ erpnext.patches.v13_0.item_naming_series_not_mandatory
erpnext.patches.v13_0.update_category_in_ltds_certificate
erpnext.patches.v13_0.create_ksa_vat_custom_fields
erpnext.patches.v13_0.rename_ksa_qr_field
erpnext.patches.v13_0.disable_ksa_print_format_for_others
erpnext.patches.v13_0.disable_ksa_print_format_for_others # 16-12-2021

View File

@@ -3,10 +3,13 @@
import frappe
from erpnext.regional.saudi_arabia.setup import add_print_formats
def execute():
company = frappe.get_all('Company', filters = {'country': 'Saudi Arabia'})
if company:
add_print_formats()
return
if frappe.db.exists('DocType', 'Print Format'):