Block negative stock in perpetual inventory

This commit is contained in:
Nabin Hait
2014-10-06 11:53:52 +05:30
parent bb19b91ef9
commit adeb976a1b
7 changed files with 63 additions and 29 deletions

View File

@@ -97,8 +97,7 @@ def validate_account_for_auto_accounting_for_stock(gl_map):
for entry in gl_map:
if entry.account in aii_accounts:
frappe.throw(_("Account: {0} can only be updated via \
Stock Transactions").format(entry.account), StockAccountInvalidTransaction)
frappe.throw(_("Account: {0} can only be updated via Stock Transactions").format(entry.account), StockAccountInvalidTransaction)
def delete_gl_entries(gl_entries=None, voucher_type=None, voucher_no=None,