Add Options in Reference Type field on Journal Entry

Hello,
I want to add some Doctype Name in ‘Reference Type’ field on Journal Entry Child

now options of ‘Reference Type’ is"


Sales Invoice
Purchase Invoice
Journal Entry
Sales Order
Purchase Order
Expense Claim
Asset

I want :


Sales Invoice
Purchase Invoice
Journal Entry
Sales Order
Purchase Order
Expense Claim
Asset
New Doc1
New Doc From Others App

So please suggest me how can I add new options from my custom app

Thanks

hey @mainul,

For this you have to add doctype’s name of Journal entry account from customize form of reference type field.

@Nishant_Jariwala Thanks.
But There have any another way to do from my custom App.
I know It’s Possible from customize form. but I need to do from my app.

you can also do it by coding same way push doctype’s name to reference type array.

You should do the changes via Customize Form only, it creates a Property Setter record in the backend. And then to make the changes as a part of your custom app, add “Property Setter” in hooks/fixture. And run bench --export-fixtures command to export the Property Setters.

1 Like

@nabinhait Thanks a lot.
its work :slight_smile: ;