Skip to content

Commit

Permalink
Merge pull request #147 from core-initiative/devel
Browse files Browse the repository at this point in the history
hotfix: query status is ambigous fix
  • Loading branch information
anhilmy authored May 6, 2024
2 parents c0142cd + e2e024e commit 2d9486b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inn/inn_hotels/report/audit_report/audit_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def get_data_detail(start_date):
from `tabInn Reservation` as ir
left join `tabInn Folio` as `if`
on if.reservation_id = ir.name
where {FILTER_FIELD_DATE} = '{start_date}' and {FILTER_FIELD_STATUS} != '{STATUS_RESERVED}'
where {FILTER_FIELD_DATE} = '{start_date}' and ir.{FILTER_FIELD_STATUS} != '{STATUS_RESERVED}'
"""

reservation = frappe.db.sql(query=query, as_dict=1)
Expand Down

0 comments on commit 2d9486b

Please sign in to comment.