Disabling Mandatory Field - Reference No in Payment Entry

Hello,

I am currently using V12 and the Reference No Field and Reference Date field is Mandatory.

In Customize Form the Button mandatory is not checked.

Is there a way we can disable mandatory for these field?

Best Regards,
Kartive

This is only mandatory when the mode is payment is anything but cash. It is assumed that you’ll be tracking the reference no (like transaction id/cheque no) and transaction date in any other mode of payment.

This is not triggered from the doctype, but is a Javascript validation. It will check the account type of the payment account and if it is set to ‘bank’ will make the two fields mandatory: