Merge pull request #42366 from vorasmit/update-prop-backport
fix: remove redundant proprietorship field from customer type and supplier type (backport #42307)
This commit is contained in:
@@ -170,7 +170,7 @@
|
|||||||
"fieldname": "supplier_type",
|
"fieldname": "supplier_type",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"label": "Supplier Type",
|
"label": "Supplier Type",
|
||||||
"options": "Company\nIndividual\nProprietorship\nPartnership",
|
"options": "Company\nIndividual\nPartnership",
|
||||||
"reqd": 1
|
"reqd": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -271,6 +271,7 @@ erpnext.patches.v13_0.create_accounting_dimensions_for_asset_repair
|
|||||||
erpnext.patches.v14_0.update_reference_due_date_in_journal_entry
|
erpnext.patches.v14_0.update_reference_due_date_in_journal_entry
|
||||||
erpnext.patches.v14_0.france_depreciation_warning
|
erpnext.patches.v14_0.france_depreciation_warning
|
||||||
erpnext.patches.v14_0.clear_reconciliation_values_from_singles
|
erpnext.patches.v14_0.clear_reconciliation_values_from_singles
|
||||||
|
erpnext.patches.v14_0.update_proprietorship_to_individual
|
||||||
|
|
||||||
[post_model_sync]
|
[post_model_sync]
|
||||||
execute:frappe.delete_doc_if_exists('Workspace', 'ERPNext Integrations Settings')
|
execute:frappe.delete_doc_if_exists('Workspace', 'ERPNext Integrations Settings')
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
import frappe
|
||||||
|
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
for doctype in ["Customer", "Supplier"]:
|
||||||
|
field = doctype.lower() + "_type"
|
||||||
|
frappe.db.set_value(doctype, {field: "Proprietorship"}, field, "Individual")
|
||||||
@@ -131,7 +131,7 @@
|
|||||||
"label": "Customer Type",
|
"label": "Customer Type",
|
||||||
"oldfieldname": "customer_type",
|
"oldfieldname": "customer_type",
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"options": "Company\nIndividual\nProprietorship\nPartnership",
|
"options": "Company\nIndividual\nPartnership",
|
||||||
"reqd": 1
|
"reqd": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user