Merge remote-tracking branch 'upstream/develop' into develop
This commit is contained in:
commit
d853353c28
@ -146,4 +146,5 @@ erpnext.patches.v4_2.fix_recurring_orders
|
||||
erpnext.patches.v4_2.delete_gl_entries_for_cancelled_invoices
|
||||
erpnext.patches.v5_0.project_costing
|
||||
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()
|
||||
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():
|
||||
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, '') != ''""")
|
@ -30,7 +30,8 @@ def execute():
|
||||
|
||||
count = 1
|
||||
for d in records:
|
||||
if cstr(d.description) == item_details.get(d.item_code).old_description:
|
||||
if d.item_code and item_details.get(d.item_code) \
|
||||
and cstr(d.description) == item_details.get(d.item_code).old_description:
|
||||
image_url = item_details.get(d.item_code).image_url
|
||||
desc = item_details.get(d.item_code).new_description
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user