Skip to content

Commit

Permalink
chore: minor refactor for doc.cost_center
Browse files Browse the repository at this point in the history
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
  • Loading branch information
anandbaburajan and deepeshgarg007 committed Jun 13, 2023
1 parent a5a8c03 commit e35395e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/payment_entry/payment_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ def get_orders_to_be_billed(
if voucher_type:
doc = frappe.get_doc({"doctype": voucher_type})
condition = ""
if doc and hasattr(doc, "cost_center") and doc.cost_center is not None:
if doc and hasattr(doc, "cost_center") and doc.cost_center:
condition = " and cost_center='%s'" % cost_center

orders = []
Expand Down

0 comments on commit e35395e

Please sign in to comment.