Custom Function in Invoices for a Feild

Custom Function in Invoices for a Feild

Hi Everyone,

Can someone please help me the function code to update the custom field (cf_delivery_date) value of the invoice using a button.

After clicking button custom field should updated with the current date.

Rregards,
Sirish