简体   繁体   English

更新 GL 对项目履行记录的影响的字段

[英]Updating field on GL Impact on Item Fullfillment record

I'm trying to update fields on GL Impact Sublist of a Item Fullfillment record.我正在尝试更新项目完成记录的 GL 影响子列表上的字段。 I do not know which sublist ID to assign it.我不知道要分配哪个子列表 ID。 To then loop through each line and update a field on the sublist record.然后循环遍历每一行并更新子列表记录上的字段。

Can anyone assist on what I need to do in Suitescript谁能协助我在 Suitescript 中需要做的事情

You can not edit GL Impact lines using script or even using the UI.您不能使用脚本甚至使用 UI 来编辑 GL Impact 行。 The GL Impact is calculated by Netsuite based on the Transaction data (in your case, based on the Item Fulfillment record data), like the selected Accounts (or the concerned Items accounts), the Transaction Status or Approval Status...总帐影响由 Netsuite 根据交易数据(在您的情况下,基于项目履行记录数据)计算,如所选账户(或相关项目账户)、交易状态或批准状态......

Although @b-assem is correct in that you cannot directly affect the GL Impact of a transaction you can do this after a fashion using the 'Custom GL Lines Plug-in'.尽管@b-assem 是正确的,因为您不能直接影响交易的 GL 影响,但您可以使用“自定义 GL 行插件”以某种方式执行此操作。 Search for that in the Netsuite help for more details.在 Netsuite 帮助中搜索以获取更多详细信息。

The plugin calls a script every time the GL impact of a transaction is updated so it should be quick or it could have a major impact on your account's performance.每次更新交易的 GL 影响时,该插件都会调用一个脚本,因此它应该很快,否则它可能会对您的帐户性能产生重大影响。

basically it allows you to reverse some or all of the GL impacts of your transaction and to add new GL Lines to balance those reversals.基本上,它允许您逆转交易对总账的部分或全部影响,并添加新的总账行来平衡这些逆转。

You could also do much the same by scripting a JE in an Item Fulfillment After Submit Event script but that is a much more involved process.您也可以通过在“提交事件后的项目履行”脚本中编写 JE 脚本来做同样的事情,但这是一个更加复杂的过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM