Axapta 如何向账本中添加列

Axapta 如何向账本中添加列,axapta,microsoft-dynamics,x++,ax,Axapta,Microsoft Dynamics,X++,Ax,我必须在ledgerTrans中添加一个新列,并写入数据,但我不想用直接的x++插入来完成。我建议通过类和权限方法来完成 我看过像LedgerJournalCheckPost和CustVendCourse这样的课程,但我得到了很好的结果 向LedgerVoucherTransObject添加访问器以设置该字段 如果您的字段需要为摘要事务分组,请将其添加到LedgerVoucher.initLedgerTransList中的字段列表中 创建LedgerVoucherTransObject时在步骤1

我必须在ledgerTrans中添加一个新列,并写入数据,但我不想用直接的x++插入来完成。我建议通过类和权限方法来完成

我看过像LedgerJournalCheckPost和CustVendCourse这样的课程,但我得到了很好的结果

  • 向LedgerVoucherTransObject添加访问器以设置该字段
  • 如果您的字段需要为摘要事务分组,请将其添加到LedgerVoucher.initLedgerTransList中的字段列表中
  • 创建LedgerVoucherTransObject时在步骤1中添加的Set访问器
  • 将断点添加到LedgerVoucherObject.addTrans并遍历调用堆栈以找到3的正确位置

  • 向LedgerVoucherTransObject添加访问器以设置该字段
  • 如果您的字段需要为摘要事务分组,请将其添加到LedgerVoucher.initLedgerTransList中的字段列表中
  • 创建LedgerVoucherTransObject时在步骤1中添加的Set访问器
  • 将断点添加到LedgerVoucherObject.addTrans并遍历调用堆栈以找到3的正确位置