Solved

What formula can I use?

  • 24 January 2023
  • 4 replies
  • 86 views

Userlevel 3
Badge +1

Hello,

Been here multiple times with this same report, I’d like to ask how it’s possible for me to NOT display the qty and uom of an item that lists down multiple serial numbers every time SN is displayed?

I originally used this Prev statement:

IIf(Prev([SOShipLine.OriginalShippedQty])=[SOShipLine.OriginalShippedQty], '', [SOShipLine.OriginalShippedQty]

And offourse, the result is, I’ll never get the same QTY or same UOM, though it’s another Item in the list. I do not wish that to happen, what formula can I use? I appreciate any help!

 

Paula

icon

Best answer by aaghaei 24 January 2023, 09:47

View original

4 replies

Userlevel 3
Badge +1

Tried using the logic that if NEXT uom is not null, then that UOM should display instead of being blank. But I got an error that says “Exception has been thrown by the target of an invocation.”

=IIf(Prev([[SOShipLine.UOM])=[SOShipLine.UOM] and Next([SOShipLine.UOM])<>Null, '',[SOShipLine.UOM])

 

Whatelse can I try? Somebody please, thank you!

Userlevel 7
Badge +8

try
 

=IIf(IsNull([SOShipLineSplit.LotSerialNbr], '')<>'', IIf(Prev([SOShipLine.TranDesc])=[SOShipLine.TranDesc], '',[SOShipLine.UOM]), [SOShipLine.UOM])

 

or compare previous and current SOShipLine.InventoryID instead of TranDesc

Userlevel 3
Badge +1

try
 

=IIf(IsNull([SOShipLineSplit.LotSerialNbr], '')<>'', IIf(Prev([SOShipLine.TranDesc])=[SOShipLine.TranDesc], '',[SOShipLine.UOM]), [SOShipLine.UOM])

 

or compare previous and current SOShipLine.InventoryID instead of TranDesc

Thank you sir, but this error came up

The expression contains the 'SOShipLine' object that is not defined in the current context.

What does this mean?

Userlevel 3
Badge +1

try
 

=IIf(IsNull([SOShipLineSplit.LotSerialNbr], '')<>'', IIf(Prev([SOShipLine.TranDesc])=[SOShipLine.TranDesc], '',[SOShipLine.UOM]), [SOShipLine.UOM])

 

or compare previous and current SOShipLine.InventoryID instead of TranDesc

Thank you sir, but this error came up

The expression contains the 'SOShipLine' object that is not defined in the current context.

What does this mean?

Oh I just missed some []. This worked! Really thank you so much for the quick and effective assistance sir @aaghaei !

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