Acumatica 和销售订单屏幕 - 创建装运

问题描述 投票:0回答:0

我正在尝试找到一种方法来修改“指定装运参数”对话框(当您单击“创建装运”操作时显示)。

我需要修改发货日期的默认值。 (根据客户要求)。

Sales Orders screen - CREATE SHIPMENT action

到目前为止:

我查看了 Stack overflow 和 Acumatica 社区论坛以获得建议

我还查看了 Acumatica SOOrderEntry.cs 源代码。

起始行:523 (SOOrderEntry.cs) 靠近此代码片段底部的是代码:soparamfilter.AskExt(true); 我相信该行执行“指定装运参数”对话框。

public PXAction createShipment; [PXButton(CommitChanges = true), PXUIField(DisplayName = OrderActions.DisplayNames.CreateShipment, MapEnableRights = PXCacheRights.Select, Visible = false)] 受保护的虚拟 IEnumerable CreateShipment(PXAdapter 适配器, [PXDate] 日期时间?发货日期, [PXInt] 整数?网站ID, [SOOperation.List] 字符串操作) { 列表列表 = adapter.Get().ToList();

        if (shipDate != null)
            soparamfilter.Current.ShipDate = shipDate;
            
        if (siteID != null)
            soparamfilter.Current.SiteID = siteID;

        if (soparamfilter.Current.ShipDate == null)
            soparamfilter.Current.ShipDate = Accessinfo.BusinessDate;

        if (!adapter.MassProcess)
        {
            if (soparamfilter.Current.SiteID == null)
                soparamfilter.Current.SiteID = GetPreferedSiteID();
            if (adapter.ExternalCall)
                soparamfilter.**AskExt(true);**
        }

感谢您的任何建议。我真的很感激。

acumatica
© www.soinside.com 2019 - 2024. All rights reserved.