mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
Validate accounting entry agaist Stock account if perpetual inventory enabled
This commit is contained in:
@@ -82,7 +82,8 @@ def make_entry(args, adv_adj, update_outstanding):
|
|||||||
gle.submit()
|
gle.submit()
|
||||||
|
|
||||||
def validate_account_for_auto_accounting_for_stock(gl_map):
|
def validate_account_for_auto_accounting_for_stock(gl_map):
|
||||||
if gl_map[0].voucher_type=="Journal Entry":
|
if cint(frappe.db.get_single_value("Accounts Settings", "auto_accounting_for_stock")) \
|
||||||
|
and gl_map[0].voucher_type=="Journal Entry":
|
||||||
aii_accounts = [d[0] for d in frappe.db.sql("""select name from tabAccount
|
aii_accounts = [d[0] for d in frappe.db.sql("""select name from tabAccount
|
||||||
where account_type = 'Warehouse' and ifnull(warehouse, '')!=''""")]
|
where account_type = 'Warehouse' and ifnull(warehouse, '')!=''""")]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user