Promised On Date for Purchase Orders: Default Setting

  • 16 April 2021
  • 5 replies

Userlevel 1

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 16 April 2021, 22:03

View original

5 replies

Userlevel 7
Badge +3

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> { }
        public virtual DateTime? ExpectedDate { get; set; }

Userlevel 1

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?

Userlevel 7
Badge +3

@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.

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.

Userlevel 6
Badge +4

Has anyone figured out how to do this? 


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved