Skip to Content
0
Dec 16, 2022 at 12:48 AM

Best practice for invoice signature in ByD

81 Views Last edit Dec 16, 2022 at 01:29 AM 2 rev

Hey all,

on a couple of ocasions I had a requirement to send some data for released invoices out to an external web service and save the response back in ByD for the customer invoice. For example I have to create an AES 128 encryption using private key and invoice ID, Date and Amount for which I use an external web service, but in some invoicing scenarios in the before save event the ID is not filled.

On multiple ocasions I had problems handling invoices that were released directly before being saved first, as in those situations the ID was not assigned in the before save event of invoice.

Can anyone with experience guide me what is the best practice aproach to situations like these where you want to cover all possible invoice scenarios but the before save event is not good enough because of scenarios like OtC invoices or manual invoice requests that get released immediately you dont have field ID yet?

Thank you,

best regards,

Josip