[flat discount] fixed test cases for stock entry

This commit is contained in:
Akhilesh Darjee
2013-12-27 14:21:39 +05:30
parent 2b1d8854d5
commit 31ccf9a80b
3 changed files with 3 additions and 3 deletions

View File

@@ -290,7 +290,7 @@ class DocType(StockController):
if not returnable_qty:
webnotes.throw("{item}: {item_code} {returned}".format(
item=_("Item"), item_code=item.item_code,
returned=_("already returned though some other documents")))
returned=_("already returned though some other documents")), StockOverReturnError)
elif item.transfer_qty > returnable_qty:
webnotes.throw("{item}: {item_code}, {returned}: {qty}".format(
item=_("Item"), item_code=item.item_code,