Acumatica自定义DAC未触发业务事件



以下是一些背景:

首先创建了一个视图,将客户在分支机构的所有余额分组:

CREATE VIEW CustomerBalance AS
select CustomerID,  sum(CurrentBal) AS 'CurrentBal'
from ARBalances
group by CustomerID;

之后,我把View拉进了一个定制,Acumatica给我做了这个DAC:

using System;
using PX.Data;
namespace JVDCustomerCreditLimit
{
[Serializable]
[PXCacheName("CustomerBalance")]
public class CustomerBalance : IBqlTable
{
#region CustomerID
[PXDBInt(IsKey = true)] // Added IsKey not sure if i should have...
[PXUIField(DisplayName = "Customer ID")]
public virtual int? CustomerID { get; set; }
public abstract class customerID : PX.Data.BQL.BqlInt.Field<customerID> { }
#endregion
#region CurrentBal
[PXDBDecimal()]
[PXUIField(DisplayName = "Current Bal")]
public virtual Decimal? CurrentBal { get; set; }
public abstract class currentBal : PX.Data.BQL.BqlDecimal.Field<currentBal> { }
#endregion
}
}

有了以上内容,我制作了一个GI,该GI链接到信用限额的客户主数据中

问题是:

我举办了一个商业活动,寻找GI的变化。当我更新信用额度(BAccount(时,业务事件会触发,但如果CurrentBalDAC(View(发生更改,则不会触发。

我在DAC的代码中遗漏了什么,以便在发生更改时触发业务事件?

我怀疑问题是您正在使用SQL视图将数据驱动到GI中。不会检测到更改,因为实际更改将由其他实体接收。

最新更新