Skip to main content
Answer

Create Pop Up Note on Field Verifying for PO Receipt

  • November 6, 2022
  • 4 replies
  • 117 views

Forum|alt.badge.img

I am trying to add a popup note when verifying a field (following this example from SO Line https://gist.github.com/gmichaud/17e346cdf3062de233f52c9976d0a03e) and getting the following error when publishing.  I know I am missing something within the highlighted section to make a proper if statement, but not sure how to fix it.

Publish error
Code

 

Best answer by Django

Whoops - my bad.

You don’t have a variable called POReceiptLine

I think you want:

row.ReceiptQty and row.OpenOrderQty

4 replies

Forum|alt.badge.img+7
  • Captain II
  • November 6, 2022

Think of the lowercase fields as objects and the uppercase fields as the actual value.

So you want for line 61:

if (POReceiptLine.ReceiptQty > POReceiptLine.OpenOrderQty)

 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • November 6, 2022

With that update, at least it is a different error:
 

 


Forum|alt.badge.img+7
  • Captain II
  • Answer
  • November 6, 2022

Whoops - my bad.

You don’t have a variable called POReceiptLine

I think you want:

row.ReceiptQty and row.OpenOrderQty


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • November 6, 2022

That did it!  Thank you!