mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-21 07:38:29 +00:00
fix: more patch related changes
This commit is contained in:
@@ -265,7 +265,6 @@ erpnext.patches.v16_0.create_company_custom_fields
|
||||
|
||||
[post_model_sync]
|
||||
erpnext.patches.v15_0.rename_gross_purchase_amount_to_net_purchase_amount
|
||||
erpnext.patches.v15_0.migrate_account_freezing_settings_to_company
|
||||
erpnext.patches.v15_0.create_asset_depreciation_schedules_from_assets
|
||||
execute:frappe.delete_doc_if_exists('Workspace', 'ERPNext Integrations Settings')
|
||||
erpnext.patches.v14_0.update_posting_datetime_and_dropped_indexes #22-02-2024
|
||||
@@ -450,4 +449,5 @@ erpnext.patches.v16_0.set_company_wise_warehouses
|
||||
erpnext.patches.v16_0.set_valuation_method_on_companies
|
||||
erpnext.patches.v15_0.migrate_old_item_wise_tax_detail_data_to_table
|
||||
erpnext.patches.v16_0.migrate_budget_records_to_new_structure
|
||||
erpnext.patches.v16_0.update_currency_exchange_settings_for_frankfurter
|
||||
erpnext.patches.v16_0.update_currency_exchange_settings_for_frankfurter
|
||||
erpnext.patches.v16_0.migrate_account_freezing_settings_to_company
|
||||
@@ -58,9 +58,9 @@ def execute():
|
||||
):
|
||||
posting_date = period_closing_voucher[0].period_end_date
|
||||
|
||||
acc_frozen_till_date = frappe.db.get_value("Company", company, "accounts_frozen_till_date")
|
||||
if acc_frozen_till_date and getdate(acc_frozen_till_date) > getdate(posting_date):
|
||||
posting_date = acc_frozen_till_date
|
||||
acc_frozen_upto = frappe.db.get_single_value("Accounts Settings", "acc_frozen_upto")
|
||||
if acc_frozen_upto and getdate(acc_frozen_upto) > getdate(posting_date):
|
||||
posting_date = acc_frozen_upto
|
||||
|
||||
stock_frozen_upto = frappe.db.get_single_value("Stock Settings", "stock_frozen_upto")
|
||||
if stock_frozen_upto and getdate(stock_frozen_upto) > getdate(posting_date):
|
||||
|
||||
Reference in New Issue
Block a user