zoukankan      html  css  js  c++  java
  • AX2012 调用试算平衡表获取指定日期期间内科目余额

        TransDate           startDate,endDate;    
    
        LedgerTrialBalanceListPageTmp       LedgerTrialBalanceListPageTmp;
        Name            primaryFocus="Account";
        boolean         includeOpening;
        boolean         includeClosing;
        OperationsTax   postingLayer = OperationsTax::Current;
        
        DimensionAttributeValueCombination  DimensionAttributeValueCombination;
        
        Amount			balance;
        ;
        startDate = mkdate(1,1,2019);
        endDate = mkdate(31,12,2019);
        
        select firstOnly RecId from LedgerTrialBalanceListPageTmp;
    
        LedgerTrialBalanceListPageTmp::constructBalances( LedgerTrialBalanceListPageTmp,primaryFocus,startDate,endDate, includeOpening,includeClosing,postingLayer);
    
        select sum(EndingBalance) from LedgerTrialBalanceListPageTmp            
        join  DimensionAttributeValueCombination
                where DimensionAttributeValueCombination.RecId ==  LedgerTrialBalanceListPageTmp.LedgerDimension
                &&DimensionAttributeValueCombination.DisplayValue == "21120";
                
        balance = LedgerTrialBalanceListPageTmp.EndingBalance;
                
    

      

  • 相关阅读:
    hive metastore && hiveserver2 . 基本配置
    Flink HA 搭建坑
    protobuf 编译安装
    编译Hadoop 2.7.2支持压缩 转
    centos 6挂载磁盘
    python
    python之面向对象(一)
    python
    python-文件压缩和解压
    python-configparser模块
  • 原文地址:https://www.cnblogs.com/sxypeace/p/14113759.html
Copyright © 2011-2022 走看看