Solved

Create Pop Up Note on Field Verifying for PO Receipt

  • 6 November 2022
  • 4 replies
  • 73 views

Userlevel 2
Badge

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

 

icon

Best answer by Django 6 November 2022, 22:26

View original

4 replies

Userlevel 2
Badge

That did it!  Thank you!

Userlevel 7
Badge +5

Whoops - my bad.

You don’t have a variable called POReceiptLine

I think you want:

row.ReceiptQty and row.OpenOrderQty

Userlevel 2
Badge

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

 

Userlevel 7
Badge +5

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)

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved