the-bantoo/expense_request

Need to link Journal Entry with the Expense Request document

Opened this issue · 0 comments

hi im trying to link the JE created with the Exp Entr but its not working, can you guide me

je = frappe.get_doc({
'title': expense_entry.name,
'doctype': 'Journal Entry',
'voucher_type': 'Journal Entry',
'posting_date': expense_entry.posting_date,
'expense_link': expense_entry.name,
'company': expense_entry.company,
'accounts': accounts,
'user_remark': expense_entry.remarks,
'mode_of_payment': expense_entry.mode_of_payment,
'cheque_date': expense_entry.clearance_date,
'reference_date': expense_entry.clearance_date,
'cheque_no': expense_entry.payment_reference,
'pay_to_recd_from': expense_entry.payment_to,
'bill_no': expense_entry.name
})

expense_link is a custom field i made in JE doctype

thank you
Indra
bigboyaja@gmail.com