【发布时间】:2019-06-04 12:50:37
【问题描述】:
我正在使用 InvoiceEntryExt Graph 扩展,并添加了一个名为“Receipts”的 DAC,我已经用 IEnumerable 方法覆盖了它。
public PXSelect<POReceipt> Receipts;
public IEnumerable receipts()
{
List<string> receiptNbrList = new List<string>();
foreach(APTran tran in Base.Transactions.Select())
{
if(!string.IsNullOrEmpty(tran.ReceiptNbr) && !receiptNbrList.Contains(tran.ReceiptNbr))
{
receiptNbrList.Add(tran.ReceiptNbr);
}
}
object[] values = receiptNbrList.ToArray();
PXResultset<POReceipt> rcpts = PXSelect<POReceipt, Where<POReceipt.receiptNbr, In<Required<POReceipt.receiptNbr>>>>.Select(new PXGraph(), values);
return rcpts;
}
当查询执行时,我将多个收据编号传递到值数组中,但每次我只得到 1 个收据结果,当我知道事实应该有更多时。
【问题讨论】:
标签: acumatica