Merge pull request #49112 from diptanilsaha/patch_set_invoice_doctype

fix: patch to set invoice_type on POS Settings
This commit is contained in:
Diptanil Saha
2025-08-12 12:49:55 +05:30
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@@ -433,3 +433,4 @@ erpnext.patches.v15_0.remove_sales_partner_from_consolidated_sales_invoice
erpnext.patches.v15_0.update_uae_zero_rated_fetch
erpnext.patches.v15_0.add_company_payment_gateway_account
erpnext.patches.v16_0.update_serial_no_reference_name
erpnext.patches.v16_0.set_invoice_type_in_pos_settings

View File

@@ -0,0 +1,6 @@
import frappe
def execute():
if not frappe.db.get_single_value("POS Settings", "invoice_type"):
frappe.db.set_single_value("POS Settings", "invoice_type", "POS Invoice")