[fix] - GL entry not creating on PR if rejected qty mentoned (#15815)

This commit is contained in:
khushalti
2018-11-13 12:09:32 +05:30
committed by Nabin Hait
parent 3d58576797
commit fad08e1bcb
3 changed files with 36 additions and 2 deletions

View File

@@ -182,7 +182,8 @@ class PurchaseReceipt(BuyingController):
if warehouse_account.get(d.warehouse):
stock_value_diff = frappe.db.get_value("Stock Ledger Entry",
{"voucher_type": "Purchase Receipt", "voucher_no": self.name,
"voucher_detail_no": d.name}, "stock_value_difference")
"voucher_detail_no": d.name, "warehouse": d.warehouse}, "stock_value_difference")
if not stock_value_diff:
continue
gl_entries.append(self.get_gl_dict({