Skip to main content
Answer

How to use the day of the year in a batch/series number formula?

  • March 29, 2022
  • 3 replies
  • 173 views

jfbrut91
Jr Varsity II
Forum|alt.badge.img

Hello, 

How to use the day of the year in a batch/series number formula. For example, today is 03/29/2022, so on the 88th day of the year, I would like my lot/serial number start with 2022/088.

Best answer by angierowley75

According to the help file (for Lot/Serial Classes), the custom format syntax leverages custom date specifiers from .NET

From what I can tell the day # of the year is not supported

https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings

3 replies

angierowley75
Acumatica Moderator
Forum|alt.badge.img+3
  • Acumatica Moderator
  • March 29, 2022

You would need to setup a Lot/Serial Class (IN207000)

Assign the “Issue Method” field as “user enterable”

And define your number segment (grid at bottom of the screen) to start with the year.  You will need to manually enter the day of the year as that is not a default segment function.

I would recommend setting up a new Lot/Serial class in your sandbox and running through a few tests to see how it behaves to figure out the best fit for your business.


jfbrut91
Jr Varsity II
Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • March 29, 2022

Thanks AngieRowley75 for your answer.

I would like to know if there is a way to automate the day of the year segment, for example by using the Custom Date Format type. 

 

 


angierowley75
Acumatica Moderator
Forum|alt.badge.img+3
  • Acumatica Moderator
  • Answer
  • March 29, 2022

According to the help file (for Lot/Serial Classes), the custom format syntax leverages custom date specifiers from .NET

From what I can tell the day # of the year is not supported

https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings