jcloude/press/api/payment.py
2025-12-23 19:17:16 +08:00

15 lines
285 B
Python

# -*- coding: utf-8 -*-
# Copyright (c) 2019, Frappe and contributors
# For license information, please see license.txt
import frappe
@frappe.whitelist()
def all():
payments = frappe.get_all(
"Payment", fields=["name"], filters={"user": frappe.session.user}
)
return payments