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;
                
    

      

  • 相关阅读:
    X-Plosives (并查集)
    HDU1272小希的迷宫 (并查集)
    React 初学
    js 插件 issue
    js常用方法
    常用网址
    js 零零散散的总结。
    git 常用命令
    es6 babel编译
    屏幕适配
  • 原文地址:https://www.cnblogs.com/sxypeace/p/14113759.html
Copyright © 2011-2022 走看看