AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Report De...
Serial numbers on i...
 
Notifications
Clear all

Questions Serial numbers on invoice to print over three columns

 
Acumatica Report Designer
Last Post by Royce Lithgo 7 years ago
5 Posts
3 Users
1 Reactions
3,720 Views
RSS
Leanne Manley
Posts: 30
 Leanne Manley
Topic starter
November 13, 2018 12:48 am
(@myobadvanced)
Trusted Member
Joined: 6 years ago

I am trying to get serial numbers to print evenly over three columns on an invoice.  I made the sub report no problem here.

My thought process was to try tabular but this does not work.  Next I made a variable that fills up on every detail line with serial number, building a string:

=Iif(
Trim(Len([SOShipLineSplit.LotSerialNbr]))>1,
$SerialTotal
+ PadRight( Cstr([SOShipLineSplit.LotSerialNbr]), 25, '_' )
+
Iif(
InStr( Cstr( round( Cdec($LineNbr)/3,2) ),'.')>0,'','{br}' )

,$SerialTotal)

 

So I am adding the carriage return every third serial number to get them to line up instead of using the word wrap as that is making them go out of order.

But I cannot seem to see why, but on screen it is still looking uneven.  First column is fine but second two columns look uneven.  I changed font to Courier New and this makes them even.

Is there a better way?


4 Replies
Tim Rodman
Posts: 3199
 Tim Rodman
Admin
November 14, 2018 5:47 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Is the problem with Tabular that it won't flow to the next line after three columns?

You probably had to change fonts because you need a monospaced font to ensure that the whitespace is the same for each line.

Not sure if this idea is cleaner, but what about using the mod operator to put a formula like this in the VisibleExpr field on the section:

=$LineNbr % 3 = 0

That would divide the line number by 3 and check if the remainder is zero. By using the VisibleExpr field, you'd only be allowing the section to print every third row.

Then for the columns.

You could have three columns with a separate textbox for each column (to avoid whitespace issues) and use the Next function to get the values from the hidden rows:

 

Column 1:

[SOShipLineSplit.LotSerialNbr]

 

Column 2:

=Next([SOShipLineSplit.LotSerialNbr])

 

Column 3:

=Next(Next([SOShipLineSplit.LotSerialNbr]))

Reply
Leanne Manley
 Leanne Manley
(@myobadvanced)
Joined: 6 years ago

Trusted Member
Posts: 30
December 10, 2018 8:18 am
Reply toTim RodmanTim Rodman

Thanks so much Tim, and sorry I took forever to reply but been a crazy month heading to Christmas.

In our Australian version, I had to work out the maths for MOD as no function was available, and that was:

=$LineNbr-(Round($LineNbr/3,0)*3)

where 3 is the divisible number

Thanks so much for putting me onto Next as well, so that really was super helpful and sadly nothing in the documentation on this provided to us, so that really helps.

Have a wonderful festive season, and thanks again for helping me, really appreciate it.  👍


Reply
Tim Rodman
Posts: 3199
 Tim Rodman
Admin
December 11, 2018 8:47 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Nice workaround formula. Glad to hear that you got it working. Enjoy the holidays! I hope you get lots of quality time with family.


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
December 16, 2018 5:12 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

We are also a MYOB Advanced customer and Report Designer bundled with that includes mod operator.

Version I am running is 18.108.16.168.


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,527 Topics
  • 10.9 K Posts
  • 19 Online
  • 2,412 Members
Our newest member: Peter Paasch
Latest Post: Can't export GI's to excel that contain the FATrans DAC after upgrade to 2025 R1 in less than 25 min
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2026 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×