首页 > 其他 > 详细

AX2012 调用试算平衡表获取指定日期期间内科目余额

时间:2020-12-10 17:50:19      阅读:29      评论:0      收藏:0      [点我收藏+]

 

    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;
            

  

AX2012 调用试算平衡表获取指定日期期间内科目余额

原文:https://www.cnblogs.com/sxypeace/p/14113759.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!