Question

Custom Event - PO Buyer as Invoice Recipient

  • 5 January 2024
  • 1 reply
  • 52 views

Badge +2

Has anyone created a custom event that would, upon creation of an External Supplier Invoice, do the following.

 

  1. Look at PO Reference field on External Supplier Invoices screen and identify the value in BUYER field, within the header of the purchase order.
  2. Update the INVOICE RECIPIENT field of the External Supplier Invoice with this value.

Appreciate an invoice can contain multiple purchase orders. If the event ignored these  or obtained the buyer from the first purchase order on the invoice that would suffice.

 

Any thoughts or guidance appreciated.


1 reply

Userlevel 7
Badge +20

Hi @harley.wilkie,

 

You could do this with a custom event but most probably the update needs to be done as a background job to avoid table mutate errors.

Please check this post on running a script as a background job.

How to create a defered job to execute .modify__() ? | IFS Community

 

Hope it helps!

Damith

Reply