link warehouse with account
This commit is contained in:
parent
f25822cd8d
commit
d51b09282a
@ -147,3 +147,4 @@ erpnext.patches.v4_2.delete_gl_entries_for_cancelled_invoices
|
|||||||
erpnext.patches.v5_0.project_costing
|
erpnext.patches.v5_0.project_costing
|
||||||
erpnext.patches.v5_0.update_temporary_account
|
erpnext.patches.v5_0.update_temporary_account
|
||||||
erpnext.patches.v5_0.update_advance_paid
|
erpnext.patches.v5_0.update_advance_paid
|
||||||
|
erpnext.patches.v5_0.link_warehouse_with_account
|
@ -15,11 +15,6 @@ def execute():
|
|||||||
delete_individual_party_account()
|
delete_individual_party_account()
|
||||||
remove_customer_supplier_account_report()
|
remove_customer_supplier_account_report()
|
||||||
|
|
||||||
|
|
||||||
def link_warehouse_account():
|
|
||||||
frappe.db.sql("""update tabAccount set warehouse=master_name
|
|
||||||
where ifnull(account_type, '') = 'Warehouse' and ifnull(master_name, '') != ''""")
|
|
||||||
|
|
||||||
def create_receivable_payable_account():
|
def create_receivable_payable_account():
|
||||||
receivable_payable_accounts = frappe._dict()
|
receivable_payable_accounts = frappe._dict()
|
||||||
|
|
||||||
|
9
erpnext/patches/v5_0/link_warehouse_with_account.py
Normal file
9
erpnext/patches/v5_0/link_warehouse_with_account.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||||
|
# License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
import frappe
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
frappe.db.sql("""update tabAccount set warehouse=master_name
|
||||||
|
where ifnull(account_type, '') = 'Warehouse' and ifnull(master_name, '') != ''""")
|
Loading…
Reference in New Issue
Block a user