Skip to main content
Solved

Customization of Invoice and Number Sequence

  • September 26, 2024
  • 3 replies
  • 122 views

Forum|alt.badge.img


Good day i have a question regarding this because i want to create a invoice type then the reference
Invoice Type :
Sales Invoice and Service Invoice
Then i want to change the number sequence depending on the Invoice type
Sales Invoice
SA000000
Service Invoice
SE000000

Is it possible
I already created a customization project that will generate a field for invoice type
 

​​​​​​my problem is i dont know how will i change my number sequence when i change a invoice types is that possible?

Best answer by varthinibhaskaran18

Hi @jhoncandare04 

The following help article might help you. It explains how to control the autonumbering functionality and change autonumbering sequence depend on conditions

https://asiablog.acumatica.com/2018/05/auto-numbering-customization.html#:~:text=AutoNumber%20Attribute%20generates%20new%20number,ing%20events%20except%20(RowSelecting

 

View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img

Hi @jhoncandare04 

The following help article might help you. It explains how to control the autonumbering functionality and change autonumbering sequence depend on conditions

https://asiablog.acumatica.com/2018/05/auto-numbering-customization.html#:~:text=AutoNumber%20Attribute%20generates%20new%20number,ing%20events%20except%20(RowSelecting

 


Forum|alt.badge.img
  • Author
  • Freshman II
  • 55 replies
  • October 2, 2024

@varthinibhaskaran18  can i publish this on specific branch because when i publish it affects all branches 


darylbowman
Captain II
Forum|alt.badge.img+13

Code customizations affect all tenants unless there is code to prevent it. 

You can restrict code to a specific tenant by using the IsActive property on a graph or cache extension:

public static bool IsActive() => PX.Data.Update.PXInstanceHelper.CurrentCompany == 2;

If you really do mean you want this to only affect a single branch, you’d need to check what branch the current user is in and return if it is not the desired branch.

You can get the current user’s branch in a graph extension from:

Base.Accessinfo.BranchID

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings