Acumatica - 操作“反转并应用备忘录”默认的过账期间为活动财务期间
创始人
2024-07-25 09:00:28
0

要将“Acumatica - 操作“反转并应用备忘录”默认的过账期间为活动财务期间”应用于Acumatica系统,可以按照以下步骤进行操作:

  1. 打开Acumatica开发环境,并进入自定义化页面。
  2. 导航到“数据访问”→“GL.30.10.00 - GLTranEntry”页面。
  3. 在页面上方的导航栏中,单击“页面源代码”按钮,以进入页面源代码编辑器。
  4. 在代码编辑器中,找到以下代码段:
public PXAction reverseAndApplyMemo;
[PXButton(CommitChanges = true)]
[PXUIField(DisplayName = "Reverse and Apply Memo", MapEnableRights = PXCacheRights.Update, MapViewRights = PXCacheRights.Select)]
protected virtual IEnumerable ReverseAndApplyMemo(PXAdapter adapter)
{
    // code to reverse and apply memo
    return adapter.Get();
}
  1. 在代码段中,找到以下行:
// code to reverse and apply memo
  1. 在此行之前,添加以下代码:
// Set the posting period to the active financial period
GLTran tran = adapter.Get().FirstOrDefault();
if (tran != null)
{
    GLTranEntry graph = PXGraph.CreateInstance();
    graph.Clear();
    graph.FindGLTranBatch.Current = graph.FindGLTranBatch.Search(tran.BatchNbr, tran.Module);
    graph.GLTranModuleBatNbr.Current = graph.GLTranModuleBatNbr.Search(tran.Module, tran.BatchNbr);
    graph.Period.HeaderRowType = typeof(FinPeriod.headerRowType);
    graph.Period.Defaults = false;
    graph.Period.Current = graph.Period.Search(tran.FinPeriodID);

    tran.TranDate = Accessinfo.BusinessDate;
    tran.TranPeriodID = graph.Period.Current.FinPeriodID;
}
  1. 保存并发布代码更改。
  2. 然后,重新加载Acumatica网站以应用更改。

以上代码会在执行“反转并应用备忘录”操作时,将过账期间设置为活动财务期间。请确保在应用更改之前进行适当的测试,并在生产环境之前备份系统。

相关内容

热门资讯

安装了Anaconda之后找不... 在安装Anaconda后,如果找不到Jupyter Notebook,可以尝试以下解决方法:检查环境...
安卓系统怎么连不上carlif... 安卓系统无法连接CarLife的原因及解决方法随着智能手机的普及,CarLife这一车载互联功能为驾...
安装安卓应用时出现“Play ... 在安装安卓应用时出现“Play Protect 警告弹窗”的原因是Google Play Prote...
避免在粘贴双引号时向VS 20... 在粘贴双引号时向VS 2022添加反斜杠的问题通常是由于编辑器的自动转义功能引起的。为了避免这个问题...
安装apache-beam==... 出现此错误可能是因为用户的Python版本太低,而apache-beam==2.34.0需要更高的P...
iqoo安卓14系统怎么升级系... 亲爱的iQOO手机用户们,是不是觉得你的手机系统有点儿落伍了呢?别急,今天就来手把手教你如何升级到最...
iwatch怎么连接安卓系统,... 你有没有想过,那款时尚又实用的iWatch,竟然只能和iPhone好上好?别急,今天就来给你揭秘,怎...
vivo安卓系统取消更新系统,... 亲爱的vivo手机用户们,你们是不是也遇到了这样的烦恼:手机里突然冒出一个更新提示,点开一看,哇,新...
Android Recycle... 要在Android RecyclerView中实现滑动卡片效果,可以按照以下步骤进行操作:首先,在项...
本地化字符串和默认值 本地化字符串是指将应用程序中的文本内容根据不同的语言和地区进行翻译和适配的过程。当应用程序需要显示不...