mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix: filter by party in opening row calculation
This commit is contained in:
@@ -375,5 +375,5 @@ def get_opening_row(party_type, party, from_date, company):
|
|||||||
Sum(gle.credit).as_("credit"),
|
Sum(gle.credit).as_("credit"),
|
||||||
(Sum(gle.debit) - Sum(gle.credit)).as_("balance"),
|
(Sum(gle.debit) - Sum(gle.credit)).as_("balance"),
|
||||||
)
|
)
|
||||||
.where((gle.account.isin(party_account)) & (gle.posting_date < from_date))
|
.where((gle.account.isin(party_account)) & (gle.party == party) & (gle.posting_date < from_date))
|
||||||
).run(as_dict=True)
|
).run(as_dict=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user