mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
[flat discount] fixed test cases for stock entry
This commit is contained in:
@@ -53,7 +53,8 @@ erpnext.POS = Class.extend({
|
|||||||
<div class="flat-discount-area">\
|
<div class="flat-discount-area">\
|
||||||
<table class="table table-condensed">\
|
<table class="table table-condensed">\
|
||||||
<tr>\
|
<tr>\
|
||||||
<td style="vertical-align: middle;"><b>Flat Discount</b></td>\
|
<td style="vertical-align: middle;" width="50%"><b>Flat Discount</b></td>\
|
||||||
|
<td width="20%"></td>\
|
||||||
<td style="text-align: right;">\
|
<td style="text-align: right;">\
|
||||||
<input type="text" class="form-control flat-discount" \
|
<input type="text" class="form-control flat-discount" \
|
||||||
style="text-align: right;">\
|
style="text-align: right;">\
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
||||||
# License: GNU General Public License v3. See license.txt
|
# License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import unittest
|
import unittest
|
||||||
import webnotes
|
import webnotes
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ class DocType(StockController):
|
|||||||
if not returnable_qty:
|
if not returnable_qty:
|
||||||
webnotes.throw("{item}: {item_code} {returned}".format(
|
webnotes.throw("{item}: {item_code} {returned}".format(
|
||||||
item=_("Item"), item_code=item.item_code,
|
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:
|
elif item.transfer_qty > returnable_qty:
|
||||||
webnotes.throw("{item}: {item_code}, {returned}: {qty}".format(
|
webnotes.throw("{item}: {item_code}, {returned}: {qty}".format(
|
||||||
item=_("Item"), item_code=item.item_code,
|
item=_("Item"), item_code=item.item_code,
|
||||||
|
|||||||
Reference in New Issue
Block a user