mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 06:22:12 +00:00
* fix: fix the purchase receipt trends and delivery note trends report (cherry picked from commit2e9dda1588) * fix: trends date filter issue --formatter (cherry picked from commitb3e4463a4f) --------- Co-authored-by: Vishv-silveroak <108357657+Vishv-024@users.noreply.github.com> Co-authored-by: Nihantra C. Patel <141945075+Nihantra-Patel@users.noreply.github.com>
This commit is contained in:
@@ -69,7 +69,7 @@ def get_data(filters, conditions):
|
|||||||
"Delivery Note",
|
"Delivery Note",
|
||||||
]:
|
]:
|
||||||
posting_date = "t1.posting_date"
|
posting_date = "t1.posting_date"
|
||||||
if filters.period_based_on:
|
if filters.period_based_on and conditions.get("trans") in ["Sales Invoice", "Purchase Invoice"]:
|
||||||
posting_date = "t1." + filters.period_based_on
|
posting_date = "t1." + filters.period_based_on
|
||||||
|
|
||||||
if conditions["based_on_select"] in ["t1.project,", "t2.project,"]:
|
if conditions["based_on_select"] in ["t1.project,", "t2.project,"]:
|
||||||
@@ -224,7 +224,7 @@ def period_wise_columns_query(filters, trans):
|
|||||||
|
|
||||||
if trans in ["Purchase Receipt", "Delivery Note", "Purchase Invoice", "Sales Invoice"]:
|
if trans in ["Purchase Receipt", "Delivery Note", "Purchase Invoice", "Sales Invoice"]:
|
||||||
trans_date = "posting_date"
|
trans_date = "posting_date"
|
||||||
if filters.period_based_on:
|
if filters.period_based_on and trans in ["Purchase Invoice", "Sales Invoice"]:
|
||||||
trans_date = filters.period_based_on
|
trans_date = filters.period_based_on
|
||||||
else:
|
else:
|
||||||
trans_date = "transaction_date"
|
trans_date = "transaction_date"
|
||||||
|
|||||||
Reference in New Issue
Block a user