static void createMovementJournalAx(Args _args)
{
	AxInventJournalTable AxinventJournalTable = new AxinventJournalTable();
	AxInventJournalTrans AxinventJournalTrans = new AxinventJournalTrans();
	InventJournalNameId inventJournalName;
	AxInventDim axinventDim = new axinventDim();
	JournalCheckPost journalCheckPost;

	//Below code creates journal header
	//inventJournalTable.clear();
	inventJournalName = InventJournalName::standardJournalName(InventJournalType::Movement);
	AxinventJournalTable.parmJournalNameId(inventJournalName);
	AxinventJournalTable.parmLedgerDimension(InventJournalName::find(inventJournalName).LedgerDimension);
	AxinventJournalTable.save();

	//Below code creates journal lines
	//inventJournalTrans.clear();
	// AXinventJournalTrans.inventJournalTableRecord(AxinventJournalTable.inventJournalTable());
	AXinventJournalTrans.parmJournalId(AXinventJournalTable.parmJournalId());
	AXinventJournalTrans.parmTransDate(systemDateGet());
	AXinventJournalTrans.parmLedgerDimension(AxinventJournalTable.parmLedgerDimension());
	//inventJournalTrans.ItemId = “S0010″;
	// AXinventJournalTrans.inventTableRecord(InventTable::find(“S0010″));
	AXinventJournalTrans.parmItemId(‘TestProductModelCP’);
	AxinventJournalTrans.parmQty(10);
	//AxinventJournalTrans.parmCostPrice(10);
	// AxinventJournalTrans

	axinventDim.parmInventSiteId(‘1′);
	//inventDim.InventColorId = “Black”;
	axinventDim.parmInventLocationId(’11’);
	// inventDim.wMSLocationId = ‘BULK-001′;
	AxinventJournalTrans.parmInventDimId(inventDim::findOrCreate(axinventDim.inventDim()).inventDimId);
	AxinventJournalTrans.save();
	axinventDim.save();
	//The below code posts the journal
	journalCheckPost = InventJournalCheckPost::newPostJournal(AxinventJournalTable.inventJournalTable());
	journalCheckPost.run();
}