I added a custom button to Expense Claim. My aim is to create a Journal Entry very similar to the one created using the standard make_bank_entry method on click of the button. There is however one significant difference:
With the standard method, the ‘Creditors’ account is automatically selected (with Employee as Party). I however want another account (which I can specify using a custom field in the Expense Claim) to be automatically selected instead
How can I achieve this? Preferably without any server-side scripting. Any assistance or samples would be greatly appreciated
Trust you’re doing well. I’ve tried but haven’t found a way to prepare data for r.message on the JS side since it generally works with the defined method (which is in py). Could you give me some more pointers in this regard?
Also, is there any way for ERPNext cloud users to create a custom method (on the py side)?