我尝试在销售订单屏幕中自定义操作电子邮件,我使用此代码但它不起作用。你能给我一些关于我的代码的建议并在 Acumatica 中自定义发送通知吗?我正在使用 Acumatica 4.2。先感谢您。
public CRActivityList<SOOrder> Activity;
public PXAction<SOOrder> notification;
[PXUIField(DisplayName = "Notifications", Visible = false)]
[PXButton(ImageKey = PX.Web.UI.Sprite.Main.DataEntryF)]
protected virtual IEnumerable Notification(PXAdapter adapter,
[PXString] string notificationCD
)
{
foreach (SOOrder order in adapter.Get<SOOrder>())
{
if (order.OrderType == "CM")
{
///my function
EmailNotification.Send_AtNPP(order, "SO301000", "SENDRETURNSO", "[[NoiDung]]", createEmailContent(order));
}
yield return order;
}
yield return adapter.Get();
}