fix: POS patch fix (#22827)
This commit is contained in:
parent
fa28e600b5
commit
b7602d29f2
@ -12,11 +12,11 @@ def execute():
|
|||||||
frappe.rename_doc('DocType', 'POS Closing Voucher Taxes', 'POS Closing Entry Taxes', force=True)
|
frappe.rename_doc('DocType', 'POS Closing Voucher Taxes', 'POS Closing Entry Taxes', force=True)
|
||||||
|
|
||||||
if not frappe.db.exists('DocType', 'POS Closing Voucher Details'):
|
if not frappe.db.exists('DocType', 'POS Closing Voucher Details'):
|
||||||
frappe.rename_doc('DocType', 'POS Closing Voucher Details', 'POS Closing Entry Details', force=True)
|
frappe.rename_doc('DocType', 'POS Closing Voucher Details', 'POS Closing Entry Detail', force=True)
|
||||||
|
|
||||||
frappe.reload_doc('Accounts', 'doctype', 'POS Closing Entry')
|
frappe.reload_doc('Accounts', 'doctype', 'POS Closing Entry')
|
||||||
frappe.reload_doc('Accounts', 'doctype', 'POS Closing Entry Taxes')
|
frappe.reload_doc('Accounts', 'doctype', 'POS Closing Entry Taxes')
|
||||||
frappe.reload_doc('Accounts', 'doctype', 'POS Closing Entry Details')
|
frappe.reload_doc('Accounts', 'doctype', 'POS Closing Entry Detail')
|
||||||
|
|
||||||
if frappe.db.exists("DocType", "POS Closing Voucher"):
|
if frappe.db.exists("DocType", "POS Closing Voucher"):
|
||||||
frappe.delete_doc("DocType", "POS Closing Voucher")
|
frappe.delete_doc("DocType", "POS Closing Voucher")
|
||||||
|
@ -6,7 +6,7 @@ from __future__ import unicode_literals
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
frappe.reload_doc("Selling", "doctype", "POS Payment Method")
|
frappe.reload_doc("accounts", "doctype", "POS Payment Method")
|
||||||
pos_profiles = frappe.get_all("POS Profile")
|
pos_profiles = frappe.get_all("POS Profile")
|
||||||
|
|
||||||
for pos_profile in pos_profiles:
|
for pos_profile in pos_profiles:
|
||||||
|
Loading…
Reference in New Issue
Block a user