mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
chore: Add index to period closing voucher column
This commit is contained in:
@@ -116,7 +116,8 @@
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"in_standard_filter": 1,
|
"in_standard_filter": 1,
|
||||||
"label": "Period Closing Voucher",
|
"label": "Period Closing Voucher",
|
||||||
"options": "Period Closing Voucher"
|
"options": "Period Closing Voucher",
|
||||||
|
"search_index": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "0",
|
"default": "0",
|
||||||
@@ -128,7 +129,7 @@
|
|||||||
"icon": "fa fa-list",
|
"icon": "fa fa-list",
|
||||||
"in_create": 1,
|
"in_create": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2023-02-27 19:47:36.658224",
|
"modified": "2023-03-06 08:56:36.393237",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Closing Balance",
|
"name": "Closing Balance",
|
||||||
|
|||||||
@@ -201,11 +201,12 @@ def get_opening_balance(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if doctype == "Closing Balance":
|
if doctype == "Closing Balance":
|
||||||
opening_balance = opening_balance.where(closing_balance.closing_date < filters.from_date)
|
|
||||||
if period_closing_voucher:
|
if period_closing_voucher:
|
||||||
opening_balance = opening_balance.where(
|
opening_balance = opening_balance.where(
|
||||||
closing_balance.period_closing_voucher == period_closing_voucher
|
closing_balance.period_closing_voucher == period_closing_voucher
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
opening_balance = opening_balance.where(closing_balance.closing_date < filters.from_date)
|
||||||
else:
|
else:
|
||||||
opening_balance = opening_balance.where(closing_balance.posting_date < filters.from_date)
|
opening_balance = opening_balance.where(closing_balance.posting_date < filters.from_date)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user