fix: whitelist get_payment_terms api (#55850)

Co-authored-by: Abdeali Chharchhoda <abdealiking786@gmail.com>
This commit is contained in:
Lakshit Jain
2026-06-23 17:37:15 +05:30
committed by GitHub
parent 4de1064ef6
commit 7b659ee6af

View File

@@ -302,6 +302,7 @@ def linked_order_has_payment_schedule(po_or_so) -> list:
return frappe.get_all("Payment Schedule", filters={"parent": po_or_so})
@frappe.whitelist()
def get_payment_terms(
terms_template: str,
posting_date: DateTimeLikeObject | None = None,