【问题标题】:The difference of search logic in the RefNbr field on the Bill and Adjustments screen between 2017 R2 version and 2021 R2 version of Acumatica SystemAcumatica System 2017 R2 版本和 2021 R2 版本在 Bill and Adjustments 屏幕上 RefNbr 字段中搜索逻辑的差异
【发布时间】:2022-11-10 03:27:01
【问题描述】:

我对 Acumatica System 的账单和调整屏幕中的 RefNbr 搜索功能的业务逻辑有一些疑问。 在 2017 R2 版本中,如果我在 RefNbr 字段中写入一些数字,系统将显示所有相关的 RefNbr 并按降序排列。请看下面的截图。

但在最新版本(2021 R2 版本)中,它显示了所有相关的 RefNbr,但似乎使用升序排序。

如果我尝试自定义以为此最新版本提供与 2017 R2 版本相同的逻辑,是否有可能? 如果可能,我应该在哪个类和方法中自定义?

谢谢。

【问题讨论】:

    标签: customization acumatica


    【解决方案1】:

    您可以覆盖 RefNbr 声明的属性。请务必将搜索排序顺序设置为降序。

        [PXDBString(15, IsKey = true, IsUnicode = true, InputMask = ">CCCCCCCCCCCCCCC")]
        [PXDefault()]
        [PXUIField(DisplayName = "Reference Nbr.", Visibility = 
        PXUIVisibility.SelectorVisible, TabOrder = 1)]
        [APInvoiceType.RefNbr(typeof(Search2<Standalone.APRegisterAlias.refNbr,
        InnerJoinSingleTable<APInvoice, On<APInvoice.docType, 
    Equal<Standalone.APRegisterAlias.docType>,
    And<APInvoice.refNbr, Equal<Standalone.APRegisterAlias.refNbr>>>,
    InnerJoinSingleTable<Vendor, On<Standalone.APRegisterAlias.vendorID, Equal<Vendor.bAccountID>>>>,
    Where<Standalone.APRegisterAlias.docType,Equal<Optional<APInvoice.docType>>, 
    And2<Where<Standalone.APRegisterAlias.origModule, NotEqual<BatchModule.moduleTX>, 
    Or<Standalone.APRegisterAlias.released, Equal<True>>>,
    And<Match<Vendor, Current<AccessInfo.userName>>>>>, 
    OrderBy<Desc<Standalone.APRegisterAlias.refNbr>>>), Filterable = true, IsPrimaryViewCompatible = true)]
            [APInvoiceType.Numbering()]
            [PXFieldDescription]
                public string RefNbr { get; set; }
    

    【讨论】:

      猜你喜欢
      • 2021-06-15
      • 2023-01-26
      • 2013-10-14
      • 2019-12-07
      • 2012-07-31
      • 2021-07-21
      • 2022-06-15
      • 2011-07-06
      • 1970-01-01
      相关资源
      最近更新 更多