将自定义字段数据保存到InItemLotSerial表时出错

时间:2017-06-23 07:04:07

标签: acumatica

我需要将自定义字段添加到InItemLotSerial表中。我已向InItemLotSerial添加了一个扩展表,以通过自定义页面接受自定义值。

我接受InventoryItem中每个序列号的自定义数据 enter image description here

我在POReceiptEntry扩展程序中添加了以下事件,以填充Inventory Item中自定义字段的值。

f<-readLines("test.txt")
require(stringr)
require(data.table)
a<-data.frame(tstrsplit(f,"\t",type.convert=TRUE,names=TRUE,keep=1:4),stringsAsFactors=FALSE)
str(a)
#'data.frame':  273070 obs. of  4 variables:
# $ V1: num  0 0.002 0.004 0.006 0.008 0.01 0.012 0.014 0.016 0.018 ...
# $ V2: num  -18.7113 -1.2685 0.0768 0.1507 0.1609 ...
# $ V3: num  0 0 0 0 0 0 0 0 0 0 ...
# $ V4: chr  NA NA NA NA ...

在触发调试事件并将值分配给自定义字段时,但在保存购买收据时会抛出错误。

enter image description here

`

`

1 个答案:

答案 0 :(得分:1)

ItemLotSerial使用ItemLotSerialAccumulator属性进行修饰,并且在持久更改数据库方面完全依赖于它:

[ItemLotSerialAccumulator]
[Serializable]
public partial class ItemLotSerial : INItemLotSerial, IQtyAllocatedBase
{
    ...
}

目前,累加器不支持扩展表,因此您最好的选择可能是在扩展表上使用INItemLotSerial DAC的常规扩展。此方法还应解决您在其他帖子Getting Error : Invalid Column NoteId

中提到的问题
相关问题