Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
3817f2b9ba
@ -192,6 +192,7 @@ class DocType(DocListController):
|
|||||||
def _insert_entries():
|
def _insert_entries():
|
||||||
if previous_stock_queue != [[row.qty, row.valuation_rate]]:
|
if previous_stock_queue != [[row.qty, row.valuation_rate]]:
|
||||||
# make entry as per attachment
|
# make entry as per attachment
|
||||||
|
if row.qty:
|
||||||
self.insert_entries({"actual_qty": row.qty,
|
self.insert_entries({"actual_qty": row.qty,
|
||||||
"incoming_rate": flt(row.valuation_rate)}, row)
|
"incoming_rate": flt(row.valuation_rate)}, row)
|
||||||
|
|
||||||
|
@ -50,6 +50,7 @@ class TestStockReconciliation(unittest.TestCase):
|
|||||||
[20, "", "2012-12-26", "12:05", 16000, 15, 18000],
|
[20, "", "2012-12-26", "12:05", 16000, 15, 18000],
|
||||||
[10, 2000, "2012-12-26", "12:10", 20000, 5, 6000],
|
[10, 2000, "2012-12-26", "12:10", 20000, 5, 6000],
|
||||||
[1, 1000, "2012-12-01", "00:00", 1000, 11, 13200],
|
[1, 1000, "2012-12-01", "00:00", 1000, 11, 13200],
|
||||||
|
[0, "", "2012-12-26", "12:10", 0, -5, 0]
|
||||||
]
|
]
|
||||||
|
|
||||||
for d in input_data:
|
for d in input_data:
|
||||||
@ -89,6 +90,8 @@ class TestStockReconciliation(unittest.TestCase):
|
|||||||
[20, "", "2012-12-26", "12:05", 18000, 15, 18000],
|
[20, "", "2012-12-26", "12:05", 18000, 15, 18000],
|
||||||
[10, 2000, "2012-12-26", "12:10", 20000, 5, 6000],
|
[10, 2000, "2012-12-26", "12:10", 20000, 5, 6000],
|
||||||
[1, 1000, "2012-12-01", "00:00", 1000, 11, 13200],
|
[1, 1000, "2012-12-01", "00:00", 1000, 11, 13200],
|
||||||
|
[0, "", "2012-12-26", "12:10", 0, -5, 0]
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
for d in input_data:
|
for d in input_data:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user