Skip to main content
Solved

Promised On Date for Purchase Orders: Default Setting


sarmstrong51
Freshman I

Acumatica 2020 R1, Build 20.101.0032, Screen ID: PO301000

 

Is there a way to have the Promised On field located within Purchase Order screen default as blank? It currently defaults to the date that the Purchase Order is created. Using Automation Steps, we can change the date that shows in that field immediately after creating a new Purchase Order, but as soon as a Vendor is selected it reverts back to the current date. We do not have any lead times set for our Items - so I’m not sure if that is partially causing this issue.

 

 

Best answer by smarenich

@sarmstrong51 it is not exactly hardcoded to be equal to PO Date.

There is a code that automatically changes Promise Date to PO date on Vendor Location change. But as I said, it can be changed with customization.

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

5 replies

smarenich
Acumatica Moderator
Forum|alt.badge.img+3
  • Acumatica Commerce Edition Team Lead
  • 227 replies
  • April 16, 2021

Hi @sabelo08,

I have checked and this change is hardcoded. Meaning that the code automatically resets the value upon vendor selection.

But it can be customeized - if you add this code, it should remove defaulting. However I haven’t tested that everything will work properly after this change.

    public class POOrderExt : PXCacheExtension<POOrder>
    {
        #region ExpectedDate
        public abstract class expectedDate : PX.Data.BQL.BqlDateTime.Field<expectedDate> { }
        [PXRemoveBaseAttribute(typeof(PXDefaultAttribute))]
        public virtual DateTime? ExpectedDate { get; set; }
        #endregion
    }


sarmstrong51
Freshman I
  • Author
  • Freshman I
  • 3 replies
  • April 16, 2021

Thank you for the quick feedback @smarenich !

To be clear, regardless of any other factors, this field is hardcoded to equal the date of PO creation once vendor is selected. Is that correct?


smarenich
Acumatica Moderator
Forum|alt.badge.img+3
  • Acumatica Commerce Edition Team Lead
  • 227 replies
  • Answer
  • April 16, 2021

@sarmstrong51 it is not exactly hardcoded to be equal to PO Date.

There is a code that automatically changes Promise Date to PO date on Vendor Location change. But as I said, it can be changed with customization.


  • Freshman I
  • 1 reply
  • November 2, 2021

I’m trying to work through this customization to remove the automatic updating of the Promised Date when the vendor location changes, but I am not able to get the desired results. I’m assuming there is something else besides the PXDefault attribute firing the update to the Promised Date field, I just can’t seem to locate it.


Jeff96
Captain II
Forum|alt.badge.img+4
  • Captain II
  • 246 replies
  • August 11, 2022

Has anyone figured out how to do this? 


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