Fixed patch, 'SalesInvoice' object has no attribute 'account_for_change_amount'

This commit is contained in:
Rohit Waghchaure 2016-08-25 12:46:34 +05:30
parent ec6267e82a
commit 0788ee62c1

View File

@ -9,6 +9,8 @@ from erpnext.controllers.stock_controller import get_warehouse_account, update_g
def execute():
if not cint(frappe.defaults.get_global_default("auto_accounting_for_stock")):
return
frappe.reload_doc('accounts', 'doctype', 'sales_invoice')
frappe.reload_doctype("Purchase Invoice")
wh_account = get_warehouse_account()