[pre_model_sync]
xhiveerp.patches.v12_0.update_is_cancelled_field
xhiveerp.patches.v11_0.rename_production_order_to_work_order
xhiveerp.patches.v13_0.add_bin_unique_constraint
xhiveerp.patches.v11_0.refactor_naming_series
xhiveerp.patches.v11_0.refactor_autoname_naming
xhiveerp.patches.v14_0.change_is_subcontracted_fieldtype
execute:xhiveframework.reload_doc("accounts", "doctype", "POS Payment Method") #2020-05-28
xhiveerp.patches.v4_2.update_requested_and_ordered_qty #2021-03-31
xhiveerp.patches.v5_7.update_item_description_based_on_item_master
xhiveerp.patches.v4_2.repost_reserved_qty #2021-03-31
xhiveerp.patches.v8_1.removed_roles_from_gst_report_non_indian_account #16-08-2018
xhiveerp.patches.v10_0.fichier_des_ecritures_comptables_for_france
xhiveerp.patches.v10_0.rename_price_to_rate_in_pricing_rule
xhiveerp.patches.v10_0.set_currency_in_pricing_rule
xhiveerp.patches.v10_0.update_translatable_fields
execute:xhiveframework.delete_doc('DocType', 'Production Planning Tool', ignore_missing=True)
xhiveerp.patches.v10_0.add_default_cash_flow_mappers
xhiveerp.patches.v11_0.rename_duplicate_item_code_values
xhiveerp.patches.v11_0.make_quality_inspection_template
xhiveerp.patches.v11_0.merge_land_unit_with_location
xhiveerp.patches.v11_0.add_index_on_nestedset_doctypes
xhiveerp.patches.v11_0.remove_modules_setup_page
xhiveerp.patches.v11_0.update_department_lft_rgt
xhiveerp.patches.v11_0.uom_conversion_data #30-06-2018
xhiveerp.patches.v11_0.update_account_type_in_party_type
xhiveerp.patches.v11_0.rename_supplier_type_to_supplier_group
xhiveerp.patches.v10_1.transfer_subscription_to_auto_repeat
xhiveerp.patches.v11_0.update_brand_in_item_price
xhiveerp.patches.v11_0.create_default_success_action
xhiveerp.patches.v11_0.rebuild_tree_for_company
xhiveerp.patches.v11_0.create_department_records_for_each_company
xhiveerp.patches.v11_0.make_location_from_warehouse
xhiveerp.patches.v11_0.make_asset_finance_book_against_old_entries
xhiveerp.patches.v11_0.check_buying_selling_in_currency_exchange
xhiveerp.patches.v11_0.move_item_defaults_to_child_table_for_multicompany #02-07-2018 #19-06-2019
xhiveerp.patches.v11_0.rename_overproduction_percent_field
xhiveerp.patches.v11_0.update_backflush_subcontract_rm_based_on_bom
xhiveerp.patches.v11_0.rename_members_with_naming_series #04-06-2018
xhiveerp.patches.v11_0.set_update_field_and_value_in_workflow_state
xhiveerp.patches.v11_0.update_total_qty_field
xhiveerp.patches.v11_0.update_sales_partner_type
xhiveerp.patches.v11_0.rename_asset_adjustment_doctype
xhiveerp.patches.v11_0.set_user_permissions_for_department
xhiveerp.patches.v11_0.hr_ux_cleanups
xhiveerp.patches.v11_0.set_department_for_doctypes
xhiveerp.patches.v11_0.update_allow_transfer_for_manufacture
xhiveerp.patches.v11_0.add_item_group_defaults
xhiveerp.patches.v11_0.add_expense_claim_default_account
xhiveerp.patches.v11_0.make_job_card
xhiveerp.patches.v11_0.add_default_dispatch_notification_template
xhiveerp.patches.v11_0.add_market_segments
xhiveerp.patches.v11_0.add_sales_stages
execute:xhiveframework.delete_doc_if_exists("Page", "sales-analytics")
execute:xhiveframework.delete_doc_if_exists("Page", "purchase-analytics")
execute:xhiveframework.delete_doc_if_exists("Page", "stock-analytics")
execute:xhiveframework.delete_doc_if_exists("Page", "production-analytics")
xhiveerp.patches.v10_0.item_barcode_childtable_migrate # 16-02-2019
xhiveerp.patches.v11_0.update_delivery_trip_status
xhiveerp.patches.v11_0.rename_bom_wo_fields
xhiveerp.patches.v12_0.set_default_homepage_type
xhiveerp.patches.v11_0.renamed_from_to_fields_in_project
xhiveerp.patches.v11_1.setup_guardian_role
execute:xhiveframework.delete_doc('DocType', 'Notification Control')
xhiveerp.patches.v11_0.remove_barcodes_field_from_copy_fields_to_variants
xhiveerp.patches.v12_0.set_task_status
xhiveerp.patches.v11_0.make_italian_localization_fields # 26-03-2019
xhiveerp.patches.v12_0.add_item_name_in_work_orders
xhiveerp.patches.v12_0.update_pricing_rule_fields
xhiveerp.patches.v11_1.make_job_card_time_logs
xhiveerp.patches.v12_0.rename_pricing_rule_child_doctypes
xhiveerp.patches.v12_0.move_target_distribution_from_parent_to_child
xhiveerp.patches.v12_0.stock_entry_enhancements
xhiveerp.patches.v10_0.item_barcode_childtable_migrate # 16-02-2019 #25-06-2019
xhiveerp.patches.v12_0.make_item_manufacturer
xhiveerp.patches.v12_0.move_item_tax_to_item_tax_template
xhiveerp.patches.v11_1.set_variant_based_on
xhiveerp.patches.v11_1.woocommerce_set_creation_user
xhiveerp.patches.v11_1.rename_depends_on_lwp
execute:xhiveframework.delete_doc("Report", "Inactive Items")
xhiveerp.patches.v11_1.delete_scheduling_tool
xhiveerp.patches.v12_0.rename_tolerance_fields
execute:xhiveframework.delete_doc_if_exists("Page", "support-analytics")
xhiveerp.patches.v12_0.remove_patient_medical_record_page
xhiveerp.patches.v11_1.move_customer_lead_to_dynamic_column
xhiveerp.patches.v11_1.set_default_action_for_quality_inspection
xhiveerp.patches.v11_1.delete_bom_browser
xhiveerp.patches.v11_1.set_missing_title_for_quotation
xhiveerp.patches.v11_1.update_bank_transaction_status
xhiveerp.patches.v11_1.renamed_delayed_item_report
xhiveerp.patches.v11_1.set_missing_opportunity_from
xhiveerp.patches.v12_0.set_quotation_status
xhiveerp.patches.v12_0.set_priority_for_support
xhiveerp.patches.v12_0.delete_priority_property_setter
xhiveerp.patches.v12_0.set_default_batch_size
execute:xhiveframework.delete_doc("DocType", "Project Task")
xhiveerp.patches.v11_1.update_default_supplier_in_item_defaults
xhiveerp.patches.v12_0.update_due_date_in_gle
xhiveerp.patches.v12_0.add_default_buying_selling_terms_in_company
xhiveerp.patches.v12_0.create_accounting_dimensions_in_missing_doctypes #2020-05-11
xhiveerp.patches.v11_1.set_status_for_material_request_type_manufacture
xhiveerp.patches.v12_0.move_plaid_settings_to_doctype
execute:xhiveframework.reload_doc('desk', 'doctype', 'dashboard_chart_link')
execute:xhiveframework.reload_doc('desk', 'doctype', 'dashboard')
execute:xhiveframework.reload_doc('desk', 'doctype', 'dashboard_chart_source')
execute:xhiveframework.reload_doc('desk', 'doctype', 'dashboard_chart')
execute:xhiveframework.reload_doc('desk', 'doctype', 'dashboard_chart_field')
xhiveerp.patches.v12_0.remove_bank_remittance_custom_fields
execute:xhiveframework.delete_doc_if_exists("Report", "Loan Repayment")
xhiveerp.patches.v12_0.move_credit_limit_to_customer_credit_limit
xhiveerp.patches.v12_0.add_variant_of_in_item_attribute_table
xhiveerp.patches.v12_0.rename_bank_account_field_in_journal_entry_account
xhiveerp.patches.v12_0.create_default_energy_point_rules
xhiveerp.patches.v12_0.set_produced_qty_field_in_sales_order_for_work_order
xhiveerp.patches.v12_0.set_cwip_and_delete_asset_settings
xhiveerp.patches.v12_0.set_expense_account_in_landed_cost_voucher_taxes
xhiveerp.patches.v12_0.replace_accounting_with_accounts_in_home_settings
xhiveerp.patches.v12_0.set_automatically_process_deferred_accounting_in_accounts_settings
xhiveerp.patches.v12_0.set_payment_entry_status
xhiveerp.patches.v12_0.update_owner_fields_in_acc_dimension_custom_fields
xhiveerp.patches.v12_0.update_price_or_product_discount
xhiveerp.patches.v12_0.set_production_capacity_in_workstation
xhiveerp.patches.v12_0.set_employee_preferred_emails
xhiveerp.patches.v12_0.set_against_blanket_order_in_sales_and_purchase_order
xhiveerp.patches.v12_0.set_cost_center_in_child_table_of_expense_claim
xhiveerp.patches.v12_0.set_lead_title_field
xhiveerp.patches.v12_0.set_permission_einvoicing
xhiveerp.patches.v12_0.create_irs_1099_field_united_states
xhiveerp.patches.v12_0.move_bank_account_swift_number_to_bank
xhiveerp.patches.v12_0.rename_bank_reconciliation
xhiveerp.patches.v12_0.rename_bank_reconciliation_fields # 2020-01-22
xhiveerp.patches.v12_0.set_purchase_receipt_delivery_note_detail
xhiveerp.patches.v12_0.add_permission_in_lower_deduction
xhiveerp.patches.v12_0.set_received_qty_in_material_request_as_per_stock_uom
xhiveerp.patches.v12_0.rename_account_type_doctype
xhiveerp.patches.v12_0.recalculate_requested_qty_in_bin
xhiveerp.patches.v12_0.set_total_batch_quantity
xhiveerp.patches.v12_0.rename_mws_settings_fields
xhiveerp.patches.v12_0.set_updated_purpose_in_pick_list
xhiveerp.patches.v12_0.repost_stock_ledger_entries_for_target_warehouse
xhiveerp.patches.v12_0.update_end_date_and_status_in_email_campaign
xhiveerp.patches.v12_0.fix_quotation_expired_status
xhiveerp.patches.v12_0.rename_pos_closing_doctype
xhiveerp.patches.v13_0.replace_pos_payment_mode_table #2020-12-29
execute:xhiveframework.delete_doc_if_exists("Page", "appointment-analytic")
execute:xhiveframework.rename_doc("Desk Page", "Getting Started", "Home", force=True)
xhiveerp.patches.v12_0.unset_customer_supplier_based_on_type_of_item_price
xhiveerp.patches.v12_0.set_valid_till_date_in_supplier_quotation
xhiveerp.patches.v13_0.update_old_loans
xhiveerp.patches.v12_0.set_serial_no_status #2020-05-21
xhiveerp.patches.v12_0.update_price_list_currency_in_bom
execute:xhiveframework.reload_doctype('Dashboard')
execute:xhiveframework.reload_doc('desk', 'doctype', 'number_card_link')
execute:xhiveframework.delete_doc_if_exists('Dashboard', 'Accounts')
xhiveerp.patches.v13_0.update_actual_start_and_end_date_in_wo
xhiveerp.patches.v12_0.update_bom_in_so_mr
execute:xhiveframework.delete_doc("Report", "Department Analytics")
execute:xhiveframework.rename_doc("Desk Page", "Loan Management", "Loan", force=True)
xhiveerp.patches.v12_0.update_uom_conversion_factor
xhiveerp.patches.v13_0.replace_pos_page_with_point_of_sale_page
xhiveerp.patches.v13_0.delete_old_purchase_reports
xhiveerp.patches.v12_0.set_italian_import_supplier_invoice_permissions
xhiveerp.patches.v13_0.update_subscription
xhiveerp.patches.v12_0.unhide_cost_center_field
xhiveerp.patches.v13_0.update_sla_enhancements
xhiveerp.patches.v13_0.update_deferred_settings
xhiveerp.patches.v12_0.set_multi_uom_in_rfq
xhiveerp.patches.v13_0.delete_old_sales_reports
execute:xhiveframework.delete_doc_if_exists("DocType", "Bank Reconciliation")
execute:xhiveframework.reload_doc("regional", "doctype", "e_invoice_settings")
xhiveerp.patches.v13_0.loyalty_points_entry_for_pos_invoice #22-07-2020
xhiveerp.patches.v12_0.add_taxjar_integration_field
xhiveerp.patches.v12_0.fix_percent_complete_for_projects
xhiveerp.patches.v13_0.delete_report_requested_items_to_order
xhiveerp.patches.v12_0.update_item_tax_template_company
xhiveerp.patches.v13_0.move_branch_code_to_bank_account
xhiveerp.patches.v13_0.add_standard_navbar_items #2021-03-24
xhiveerp.patches.v13_0.stock_entry_enhancements
xhiveerp.patches.v12_0.rename_lost_reason_detail
xhiveerp.patches.v13_0.drop_razorpay_payload_column
xhiveerp.patches.v13_0.rename_issue_doctype_fields
xhiveerp.patches.v13_0.change_default_pos_print_format
xhiveerp.patches.v13_0.set_youtube_video_id
xhiveerp.patches.v13_0.set_app_name
xhiveerp.patches.v13_0.print_uom_after_quantity_patch
xhiveerp.patches.v13_0.set_payment_channel_in_payment_gateway_account
execute:xhiveframework.delete_doc("Report", "Quoted Item Comparison")
xhiveerp.patches.v13_0.update_member_email_address
xhiveerp.patches.v13_0.update_pos_closing_entry_in_merge_log
xhiveerp.patches.v13_0.add_po_to_global_search
xhiveerp.patches.v13_0.update_returned_qty_in_pr_dn
execute:xhiveframework.rename_doc("Workspace", "Loan", "Loan Management", ignore_if_exists=True, force=True)
xhiveerp.patches.v13_0.create_uae_pos_invoice_fields
xhiveerp.patches.v13_0.update_project_template_tasks
xhiveerp.patches.v13_0.convert_qi_parameter_to_link_field
xhiveerp.patches.v13_0.add_naming_series_to_old_projects # 1-02-2021
xhiveerp.patches.v13_0.update_payment_terms_outstanding
xhiveerp.patches.v13_0.delete_old_bank_reconciliation_doctypes
xhiveerp.patches.v13_0.update_vehicle_no_reqd_condition
xhiveerp.patches.v13_0.rename_membership_settings_to_non_profit_settings
xhiveerp.patches.v13_0.setup_uae_vat_fields
execute:xhiveframework.db.set_value('System Settings', None, 'app_name', 'XhiveERP')
xhiveerp.patches.v12_0.purchase_receipt_status
xhiveerp.patches.v13_0.fix_non_unique_represents_company
xhiveerp.patches.v12_0.add_document_type_field_for_italy_einvoicing
xhiveerp.patches.v13_0.update_shipment_status
xhiveerp.patches.v13_0.remove_attribute_field_from_item_variant_setting
xhiveerp.patches.v13_0.set_pos_closing_as_failed
execute:xhiveframework.rename_doc("Workspace", "Loan Management", "Loans", force=True)
xhiveerp.patches.v13_0.update_timesheet_changes
xhiveerp.patches.v13_0.add_doctype_to_sla #14-06-2021
xhiveerp.patches.v13_0.bill_for_rejected_quantity_in_purchase_invoice
xhiveerp.patches.v13_0.rename_issue_status_hold_to_on_hold
xhiveerp.patches.v13_0.update_response_by_variance
xhiveerp.patches.v13_0.update_job_card_details
xhiveerp.patches.v13_0.add_missing_fg_item_for_stock_entry
xhiveerp.patches.v13_0.update_subscription_status_in_memberships
xhiveerp.patches.v13_0.update_amt_in_work_order_required_items
xhiveerp.patches.v13_0.delete_orphaned_tables
xhiveerp.patches.v13_0.update_tds_check_field #3
xhiveerp.patches.v13_0.add_custom_field_for_south_africa #2
xhiveerp.patches.v13_0.update_recipient_email_digest
xhiveerp.patches.v13_0.shopify_deprecation_warning
xhiveerp.patches.v13_0.remove_bad_selling_defaults
xhiveerp.patches.v13_0.trim_whitespace_from_serial_nos  # 16-01-2022
xhiveerp.patches.v13_0.migrate_stripe_api
xhiveerp.patches.v13_0.reset_clearance_date_for_intracompany_payment_entries
execute:xhiveframework.reload_doc("xhiveerp_integrations", "doctype", "TaxJar Settings")
execute:xhiveframework.reload_doc("xhiveerp_integrations", "doctype", "Product Tax Category")
xhiveerp.patches.v13_0.custom_fields_for_taxjar_integration          #08-11-2021
xhiveerp.patches.v13_0.set_operation_time_based_on_operating_cost
xhiveerp.patches.v13_0.create_gst_payment_entry_fields #27-11-2021
xhiveerp.patches.v13_0.fix_invoice_statuses
xhiveerp.patches.v13_0.create_website_items #30-09-2021
xhiveerp.patches.v13_0.populate_e_commerce_settings
xhiveerp.patches.v13_0.make_homepage_products_website_items
xhiveerp.patches.v13_0.replace_supplier_item_group_with_party_specific_item
xhiveerp.patches.v13_0.update_dates_in_tax_withholding_category
xhiveerp.patches.v14_0.update_opportunity_currency_fields
xhiveerp.patches.v13_0.create_accounting_dimensions_in_pos_doctypes
xhiveerp.patches.v13_0.create_custom_field_for_finance_book
xhiveerp.patches.v13_0.modify_invalid_gain_loss_gl_entries #2
xhiveerp.patches.v13_0.fix_additional_cost_in_mfg_stock_entry
xhiveerp.patches.v13_0.set_status_in_maintenance_schedule_table
xhiveerp.patches.v13_0.enable_scheduler_job_for_item_reposting
xhiveerp.patches.v13_0.requeue_failed_reposts
xhiveerp.patches.v13_0.update_job_card_status
xhiveerp.patches.v13_0.enable_uoms
xhiveerp.patches.v12_0.update_production_plan_status
xhiveerp.patches.v13_0.healthcare_deprecation_warning
xhiveerp.patches.v13_0.item_naming_series_not_mandatory
xhiveerp.patches.v13_0.update_category_in_ltds_certificate
xhiveerp.patches.v13_0.fetch_thumbnail_in_website_items
xhiveerp.patches.v13_0.update_maintenance_schedule_field_in_visit
xhiveerp.patches.v13_0.create_ksa_vat_custom_fields # 07-01-2022
xhiveerp.patches.v14_0.migrate_crm_settings
xhiveerp.patches.v13_0.rename_ksa_qr_field
xhiveerp.patches.v13_0.wipe_serial_no_field_for_0_qty
xhiveerp.patches.v13_0.disable_ksa_print_format_for_others # 16-12-2021
xhiveerp.patches.v13_0.agriculture_deprecation_warning
xhiveerp.patches.v13_0.hospitality_deprecation_warning
xhiveerp.patches.v13_0.update_asset_quantity_field
xhiveerp.patches.v13_0.delete_bank_reconciliation_detail
xhiveerp.patches.v13_0.enable_provisional_accounting
xhiveerp.patches.v13_0.non_profit_deprecation_warning
xhiveerp.patches.v13_0.enable_ksa_vat_docs #1
xhiveerp.patches.v13_0.show_india_localisation_deprecation_warning
xhiveerp.patches.v13_0.show_hr_payroll_deprecation_warning
xhiveerp.patches.v13_0.reset_corrupt_defaults
xhiveerp.patches.v13_0.create_accounting_dimensions_for_asset_repair
xhiveerp.patches.v14_0.update_reference_due_date_in_journal_entry

[post_model_sync]
execute:xhiveframework.delete_doc_if_exists('Workspace', 'XhiveERP Integrations Settings')
xhiveerp.patches.v14_0.rename_ongoing_status_in_sla_documents
xhiveerp.patches.v14_0.delete_shopify_doctypes
xhiveerp.patches.v14_0.delete_healthcare_doctypes
xhiveerp.patches.v14_0.delete_hub_doctypes
xhiveerp.patches.v14_0.delete_hospitality_doctypes # 20-01-2022
xhiveerp.patches.v14_0.delete_agriculture_doctypes # 15-06-2022
xhiveerp.patches.v14_0.delete_education_doctypes
xhiveerp.patches.v14_0.delete_datev_doctypes
xhiveerp.patches.v14_0.rearrange_company_fields
xhiveerp.patches.v13_0.update_sane_transfer_against
xhiveerp.patches.v14_0.migrate_cost_center_allocations
xhiveerp.patches.v13_0.convert_to_website_item_in_item_card_group_template
xhiveerp.patches.v13_0.shopping_cart_to_ecommerce
xhiveerp.patches.v13_0.update_disbursement_account
xhiveerp.patches.v13_0.update_reserved_qty_closed_wo
xhiveerp.patches.v13_0.update_exchange_rate_settings
xhiveerp.patches.v14_0.delete_amazon_mws_doctype
xhiveerp.patches.v13_0.set_work_order_qty_in_so_from_mr
xhiveerp.patches.v13_0.update_accounts_in_loan_docs
xhiveerp.patches.v13_0.item_reposting_for_incorrect_sl_and_gl
xhiveerp.patches.v14_0.update_batch_valuation_flag
xhiveerp.patches.v14_0.delete_non_profit_doctypes
xhiveerp.patches.v13_0.add_cost_center_in_loans
xhiveerp.patches.v13_0.set_return_against_in_pos_invoice_references
xhiveerp.patches.v13_0.remove_unknown_links_to_prod_plan_items # 24-03-2022
xhiveerp.patches.v13_0.copy_custom_field_filters_to_website_item
xhiveerp.patches.v13_0.change_default_item_manufacturer_fieldtype
xhiveerp.patches.v13_0.requeue_recoverable_reposts
xhiveerp.patches.v14_0.discount_accounting_separation
xhiveerp.patches.v13_0.create_accounting_dimensions_in_orders
xhiveerp.patches.v13_0.set_per_billed_in_return_delivery_note
execute:xhiveframework.delete_doc("DocType", "Naming Series")
xhiveerp.patches.v13_0.job_card_status_on_hold
xhiveerp.patches.v14_0.copy_is_subcontracted_value_to_is_old_subcontracting_flow
xhiveerp.patches.v14_0.crm_ux_cleanup
xhiveerp.patches.v14_0.migrate_existing_lead_notes_as_per_the_new_format
xhiveerp.patches.v14_0.remove_india_localisation # 14-07-2022
xhiveerp.patches.v13_0.fix_number_and_frequency_for_monthly_depreciation
xhiveerp.patches.v14_0.remove_hr_and_payroll_modules # 20-07-2022
xhiveerp.patches.v14_0.fix_crm_no_of_employees
xhiveerp.patches.v14_0.create_accounting_dimensions_in_subcontracting_doctypes
xhiveerp.patches.v14_0.fix_subcontracting_receipt_gl_entries
xhiveerp.patches.v13_0.update_schedule_type_in_loans
xhiveerp.patches.v13_0.drop_unused_sle_index_parts
xhiveerp.patches.v14_0.create_accounting_dimensions_for_asset_capitalization
xhiveerp.patches.v14_0.update_partial_tds_fields
xhiveerp.patches.v14_0.create_incoterms_and_migrate_shipment
xhiveerp.patches.v14_0.setup_clear_repost_logs
xhiveerp.patches.v14_0.create_accounting_dimensions_for_payment_request
xhiveerp.patches.v14_0.update_entry_type_for_journal_entry
xhiveerp.patches.v14_0.change_autoname_for_tax_withheld_vouchers
xhiveerp.patches.v14_0.update_asset_value_for_manual_depr_entries
xhiveerp.patches.v14_0.set_pick_list_status
xhiveerp.patches.v13_0.update_docs_link
execute:xhiveframework.db.set_single_value("Accounts Settings", "merge_similar_account_heads", 0)
# below migration patches should always run last
xhiveerp.patches.v14_0.migrate_gl_to_payment_ledger
xhiveerp.patches.v14_0.update_company_in_ldc
