Skip to content

Need to link Journal Entry with the Expense Request document #7

@exar888

Description

@exar888

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
[email protected]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions