AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • 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
Everything Else
Make Sales Order Nu...
 
Notifications
Clear all

Questions Make Sales Order Number field compulsory?

 
Everything Else
Last Post by Tim Rodman 7 years ago
20 Posts
6 Users
1 Reactions
4,497 Views
RSS
daniel
Posts: 92
 daniel
Topic starter
June 23, 2019 9:42 pm
(@daniel)
Estimable Member
Joined: 6 years ago

Hello,

ย 

Is there a way to make the Sales Order Number field compulsory? (Without code would be great 😁).


19 Replies
Tim Rodman
 Tim Rodman
Admin
(@timrodman)
Joined: 11 years ago

Famed Member
Posts: 3204
September 28, 2019 4:37 pm
Reply todanieldaniel
Posted by: @daniel-o

Hello,

ย 

Is there a way to make the Sales Order Number field compulsory? (Without code would be great 😁).

@daniel-o

Back to the original Post on this Topic, it looks like you can now do this without code in Acumatica 2019 R2. It's now a setting on the Order Types (SO201000) screen:


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
June 23, 2019 10:10 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Make it compulsory where? More details needed.


Reply
daniel
Posts: 92
 daniel
Topic starter
June 24, 2019 5:43 pm
(@daniel)
Estimable Member
Joined: 6 years ago

To make it compulsory for the customer order number field (Data Class SOOrder, Data Fieldย CustomerOrderNbr) before a Sales Order can be unheld and saved. It would also be great if this only occurred when the Order Type is SO.

Is there a button in the backend where this can be done?


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
June 24, 2019 6:30 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Sounds like you haven't implemented the system properly. It should default to <NEW> and when it gets saved, a new number is automatically allocated from the number sequence. Are you doing manual SO numbering ?


Reply
Carl Brooks
Posts: 121
 Carl Brooks
June 25, 2019 2:11 am
(@kingcarlos)
Estimable Member
Joined: 6 years ago

If you create a new customisation project, navigate to the field, see below

And then go to Attributes and add [PXDefault] as shown below

Publish and the field is now mandatory.


Reply
Brandon
 Brandon
(@brandon)
Joined: 7 years ago

Member
Posts: 26
June 25, 2019 3:19 am
Reply toCarl BrooksCarl Brooks

Hi Carl,

Do you know how to adjust this so it is only required for a certain order type? Or to exclude a certain order type? I have added this and it works fine for most orders, but orders with the TR type do not have a CustomerOrderNbr field but still give an error saying you cannot save until it is updated.


Reply
daniel
Posts: 92
 daniel
Topic starter
June 25, 2019 4:05 am
(@daniel)
Estimable Member
Joined: 6 years ago

Thanks a lot for this Carl, it has worked.

ย 


Reply
daniel
Posts: 92
 daniel
Topic starter
June 25, 2019 6:40 pm
(@daniel)
Estimable Member
Joined: 6 years ago

I do keep getting a random popup on sales orders, and dashboards grabbing info from sales orders, since implementing this change. The message is:

[A]PX.Objects.SO.SO_SOOrder_ExistingColumn cannot be cast to [B]PX.Objects.SO.SO_SOOrder_ExistingColumn. Type A originates from 'App_Code.ho_9myru, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'D:\8bc05a18f9be40f0b1ebb13a2567a021\tempdirectory\root\12c687a2\c062361a\App_Code.ho_9myru.dll'. Type B originates from 'App_Code.oyg-m7i8, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'D:\8bc05a18f9be40f0b1ebb13a2567a021\tempdirectory\root\12c687a2\c062361a\App_Code.oyg-m7i8.dll'.

Whats this message about? Often by refreshing the page it goes away, but it does keep popping up.ย  Also hopefully I'm not causing a security risk by posting this message, please let me know if it is.


Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
July 18, 2019 10:03 pm
(@timrodman)
Famed Member
Joined: 11 years ago

That's a crazy error message. Maybe it's caused by another Customization Project?


Reply
Brandon
Posts: 26
 Brandon
July 23, 2019 1:57 am
(@brandon)
Member
Joined: 7 years ago

Has anyone had any luck figuring out how to make this required without getting an error on transfer orders?

I have updated to make this field required and it works fine for most orders, but orders with the TR type do not have a CustomerOrderNbr field but still give an error saying you cannot save until it is updated. I have been unable to figure out how to either add the CustomerOrderNbr to make it visible even for TR order types or to make the required error exclude the TR order type.


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
July 23, 2019 6:29 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Does this help?

https://stackoverflow.com/questions/43353360/make-salesperson-id-a-required-field-on-soline


Reply
Brandon
 Brandon
(@brandon)
Joined: 7 years ago

Member
Posts: 26
July 26, 2019 7:54 pm
Reply toRoyce LithgoRoyce Lithgo

@royce-lithgo

Yes, sort of. I think it helps address the issue I'm having, but I'm not familiar with customizations directly to the code so it's a bit over my head how to implement this.


Reply
Royce Lithgo
 Royce Lithgo
(@roycelithgo)
Joined: 6 years ago

Honorable Member
Posts: 557
July 29, 2019 3:42 pm
Reply toBrandonBrandon
Royce Lithgo

@brandon

There are several free courses available on Open Uni that might get you started.

Check out the application development section at the bottom.

https://openuni.acumatica.com/courses/

ย 


Reply
Wyatt.ERP
Posts: 128
 Wyatt.ERP
August 8, 2019 3:29 pm
(@wyatt-erp)
Estimable Member
Joined: 6 years ago

@daniel-o

Those messages pop up after publishing a customization sometimes.ย  You can clear them by restarting your instance (System Management -> Apply Updates screen -> Restart Application).ย  It gets the application back in sync.


Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
August 29, 2019 7:36 pm
(@timrodman)
Famed Member
Joined: 11 years ago

In Acumatica 2019 R1 you can apply conditions to your screen customizations like this:

I wonder if that would resolve the errors you get when using the TR Order Type.


Reply
Brandon
 Brandon
(@brandon)
Joined: 7 years ago

Member
Posts: 26
August 29, 2019 7:41 pm
Reply toTim RodmanTim Rodman

@timrodman

Hey Tim,

Thanks, I actually just found this conditions feature by accident a couple weeks ago. It works perfectly for what we were looking to do to make fields required by order type.ย 

We are still working to figure out a solution to a different conditionally required field where we would like to make the reason code required only when the order line amount field is equal to zero. However I don't believe it's possible to set up a condition like your screenshot based on the SOLine Amount field.


Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
August 29, 2019 8:28 pm
(@timrodman)
Famed Member
Joined: 11 years ago

Ya, my impression is that those Conditions apply to header fields, not line fields.


Reply
Wyatt.ERP
Posts: 128
 Wyatt.ERP
August 30, 2019 10:31 am
(@wyatt-erp)
Estimable Member
Joined: 6 years ago

@brandon,

If you add this attribute to your SOLine.ReasonCode, you should get your desired effect:

[PXUIRequired(typeof(Where<SOLine.curyLineAmt, Equal>))]


Reply
Brandon
 Brandon
(@brandon)
Joined: 7 years ago

Member
Posts: 26
August 30, 2019 11:33 pm
Reply toWyatt.ERPWyatt.ERP

@wyatt-erp

Thank you! That seems to be working perfectly. 🤩ย 

I could have sworn I tried this customization on our test system previously without it working but maybe I had a typo or slightly different.ย 


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,532 Topics
  • 11 K Posts
  • 34 Online
  • 2,418 Members
Our newest member: Chad Treadwell
Latest Post: Limited or no support from Acumatica?
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.

โ€นโ€บร—

    โ€นโ€บร—