mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 21:29:11 +00:00
chore: frappe.whitelist for doc methods (#25068)
* chore: frappe.whitelist for doc methods * fix: incorrect spelling * fix: sider issue Co-authored-by: Sagar Vora <sagar@resilient.tech>
This commit is contained in:
@@ -133,6 +133,7 @@ class PurchaseOrder(BuyingController):
|
||||
d.material_request_item, "schedule_date")
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_last_purchase_rate(self):
|
||||
"""get last purchase rates for all items"""
|
||||
|
||||
|
||||
@@ -66,6 +66,7 @@ class RequestforQuotation(BuyingController):
|
||||
def on_cancel(self):
|
||||
frappe.db.set(self, 'status', 'Cancelled')
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_supplier_email_preview(self, supplier):
|
||||
"""Returns formatted email preview as string."""
|
||||
rfq_suppliers = list(filter(lambda row: row.supplier == supplier, self.suppliers))
|
||||
|
||||
Reference in New Issue
Block a user