mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 00:25:01 +00:00
(cherry picked from commit 92e86f2f09)
Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
This commit is contained in:
@@ -12,14 +12,15 @@ class AppointmentLetter(Document):
|
||||
@frappe.whitelist()
|
||||
def get_appointment_letter_details(template):
|
||||
body = []
|
||||
intro= frappe.get_list("Appointment Letter Template",
|
||||
fields = ['introduction', 'closing_notes'],
|
||||
filters={'name': template
|
||||
})[0]
|
||||
content = frappe.get_list("Appointment Letter content",
|
||||
fields = ['title', 'description'],
|
||||
filters={'parent': template
|
||||
})
|
||||
intro = frappe.get_list('Appointment Letter Template',
|
||||
fields=['introduction', 'closing_notes'],
|
||||
filters={'name': template}
|
||||
)[0]
|
||||
content = frappe.get_all('Appointment Letter content',
|
||||
fields=['title', 'description'],
|
||||
filters={'parent': template},
|
||||
order_by='idx'
|
||||
)
|
||||
body.append(intro)
|
||||
body.append({'description': content})
|
||||
return body
|
||||
|
||||
Reference in New Issue
Block a user