mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-03 00:23:21 +00:00
Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
@@ -75,8 +75,8 @@ class DocType(DocListController):
|
||||
bin_list = webnotes.conn.sql("select * from tabBin where item_code=%s",
|
||||
self.doc.item_code, as_dict=1)
|
||||
for bin in bin_list:
|
||||
if bin.reserved_qty > 0 or bin.ordered_qty > 0 or bin.indented_qty > 0 \
|
||||
or bin.planned_qty > 0 and cstr(bin.stock_uom) != cstr(self.doc.stock_uom):
|
||||
if (bin.reserved_qty > 0 or bin.ordered_qty > 0 or bin.indented_qty > 0 \
|
||||
or bin.planned_qty > 0) and cstr(bin.stock_uom) != cstr(self.doc.stock_uom):
|
||||
matched = False
|
||||
break
|
||||
|
||||
|
||||
@@ -886,7 +886,8 @@ def make_return_jv(stock_entry):
|
||||
"account": r.get("account"),
|
||||
"against_invoice": r.get("against_invoice"),
|
||||
"against_voucher": r.get("against_voucher"),
|
||||
"balance": get_balance_on(r.get("account"), se.doc.posting_date)
|
||||
"balance": get_balance_on(r.get("account"), se.doc.posting_date) \
|
||||
if r.get("account") else 0
|
||||
})
|
||||
|
||||
return jv_list
|
||||
|
||||
Reference in New Issue
Block a user