mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-15 09:53:09 +00:00
[flat discount] fixed test cases for stock entry
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user