How to customize VN-IV number and Serial in Sales update --> Invoice ( write data in CustInvoiceJour)

Hi all ! I have a problem , I must to customize Invoice in Sales update.

see my image:

data customer input:

when i post invoice then Serial and VN-IV number will write in CustInvoiceJour table.

please, help me solution or code X++ in system run write data for CustInvoiceJour table.

For reference, this question is already being discussed on another forum.