Skip to main content
Question

Custom Event - PO Buyer as Invoice Recipient

  • January 5, 2024
  • 1 reply
  • 97 views

Forum|alt.badge.img+3

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

dsj
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • 880 replies
  • January 5, 2024

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings