How to using x++ code create GL journal[AX2012]
static void FAN_GLImport(Args _args)
{
AxLedgerJournalTable header = new AxLedgerJournalTable();
AxLedgerJournalTrans trans = new AxLedgerJournalTrans();
container ledgerDim, offsetDim;
LedgerJournalNameId ledgerJournalNameId = "GeneralJR";
DimensionAttributeValueCombination ledgerDimension;
LedgerJournalACType accType, offsetAccType;
BankAccountTable bankAccountTable; ;
accType = LedgerJournalACType::Ledger;
offsetAccType = LedgerJournalACType::Bank; header.parmJournalName(ledgerJournalNameId);
header.save(); trans.parmAccountType(accType);
trans.parmJournalNum(header.ledgerJournalTable().JournalNum); //If account type is Ledger
ledgerDim = ["142102-C-ADMIN","","C","ADMIN"];//First is Display value, followed by Main Account and then dimensions. //If account type is other than ledger then Switch case statement can be written to get RecId from DimensionAttributeValueCombination Table. trans.parmLedgerDimension(AxdDimensionUtil::getLedgerAccountId(ledgerDim));
trans.parmAmountCurDebit();
trans.parmOffsetAccountType(offsetAccType); switch(offsetAccType)
{
case LedgerJournalACType::Bank : select firstOnly bankAccountTable
join RecId from ledgerDimension
where ledgerDimension.DisplayValue == bankAccountTable.AccountID
&& bankAccountTable.AccountID == "ICICI Bank";
trans.parmOffsetLedgerDimension(ledgerDimension.RecId); //Same cases has to be written for others like Vendor, Customer. Except Account type ledger
//If offset account type is ledger then trans.parmOffsetLedgerDimension() will only be supported.
} //trans.parmOffsetLedgerDimension(AxdDimensionUtil::getLedgerAccountId(offsetDim));
trans.save(); }
How to using x++ code create GL journal[AX2012]的更多相关文章
- How to using to code import to GL journal[AX2012]
		static void THK_importLedgerJournalTrans(Args _args) { Filename fileName = "C:\\Users\\ksiu3880 ... 
- Visual Studio Code create the aps.net core project(Visual Studio Code 创建asp.net core项目)
		Install the C# plug-in as shown below: Perfom the dotnet new --help command as shown below: Enter a ... 
- Oracle Applications Multiple Organizations Access Control for Custom Code
		档 ID 420787.1 White Paper Oracle Applications Multiple Organizations Access Control for Custom Code ... 
- How to: Synchronize Files by Using Managed Code
		The examples in this topic focus on the following Sync Framework types: FileSyncProvider FileSyncOpt ... 
- 转载:Character data is represented incorrectly when the code page of the client computer differs from the code page of the database in SQL Server 2005
		https://support.microsoft.com/en-us/kb/904803 Character data is represented incorrectly when the cod ... 
- URAL 1780 G - Gray Code 找规律
		G - Gray CodeTime Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://acm.hust.edu.cn/vjudge/contest/view ... 
- 002.Create a web API with ASP.NET Core MVC and Visual Studio for Windows -- 【在windows上用vs与asp.net core mvc 创建一个 web api 程序】
		Create a web API with ASP.NET Core MVC and Visual Studio for Windows 在windows上用vs与asp.net core mvc 创 ... 
- Object Detection with 10 lines of code - Image AI
		To perform object detection using ImageAI, all you need to do is Install Python on your computer sys ... 
- WPS 2019  How To Create New Sheets For Each Row In Excel?
		https://www.extendoffice.com/documents/excel/3197-excel-create-new-sheet-for-each-row.html How To C ... 
随机推荐
- Android系统下的动态Dex加载
			1 问题在Android系统中,一个App的所有代码都在一个Dex文件里面.Dex是一个类似Jar的存储了多有Java编译字节码的归档文件.因为Android系统使用Dalvik虚拟机,所以需要把使用 ... 
- java自定义注解注解方法、类、属性等等【转】
			http://anole1982.iteye.com/blog/1450421 http://www.open-open.com/doc/view/51fe76de67214563b20b385320 ... 
- kylin一种OLAP的实现
			1.基于hive.hadoop的预先计算. 2.cube存储在HBASE里面.利用HBase的列存储,实现MOLAP 3.在cube上做数据分析,kylin实现标准的SQL,实现查询HBase 所以说 ... 
- 分布式消息队列的使用kakfa
			作用: 1.系统解耦 2.通过消息可以减少系统的处理压力,做一个缓冲 3.原理基于生存者消费者的模式 4.两种场景:队列(端对端 一对一).主题(一对多,广播模式) 5.消息:header.body构 ... 
- Django: TemplateDoesNotExist at /admin/
			最近用virtualenv 总出现 Django: TemplateDoesNotExist at /admin/的问题,报错TemplateDoesNotExist at /admin/admin/ ... 
- Spark ThriftServer使用的大坑
			当用beeline连接default后,通过use xxx切换到其他数据库,再退出, 再次使用beeline -u jdbc:hive2://hadoop000:10000/default -n sp ... 
- 在 ASP.NET MVC 应用中使用 NInject 注入 ASMX 类型的 Web Service
			这几天,有同学问到为什么在 ASP.NET MVC 应用中,无法在 .ASMX 中使用 NInject 进行注入. 现象 比如,我们定义了一个接口,然后定义了一个实现. public interfac ... 
- 腾讯校招技术岗面试经历及总结(已发offer)
			关于笔试:只要前期复习到位,笔试还是很好过的,但是当然 分数 越高越好,否则后面会被面试官鄙视的.题目可能难度较大,但是要把会做的 都做 对,如果时间比较紧可以适度放弃部分不会的题目. 关于面试: 温 ... 
- PMP--项目经理解决冲突的模式
			如果你对项目管理.系统架构有兴趣,请加微信订阅号"softjg",加入这个PM.架构师的大家庭 在实际工作过程中,作为一个项目经理,在解决冲突的时候可以通过多种模式解决,项目经理在 ... 
- WebView 获取网页点击事件
			网页上的点击按钮 本身绑定了URL,点击的时候webview 会在下面的这个方法中加载URL - (BOOL)webView:(UIWebView*)webView shouldStartLoadWi ... 
