Hello Randy, thanks for your reply! But my problem is related to the version 4.0, how can i do it in this version?
Regards On Tue, Feb 23, 2010 at 2:59 PM, Edvandro Santos <edvandro.san...@gmail.com>wrote: > > > ---------- Forwarded message ---------- > From: Randy Pedersen <rpeder...@agility-inc.com> > Date: Mon, Feb 22, 2010 at 5:48 PM > Subject: RE: [Axapta-Knowledge-Village] Simulate markTrans on > CustTransOpen_DS > To: "Axapta-Knowledge-Village@yahoogroups.com" < > Axapta-Knowledge-Village@yahoogroups.com> > > > > > Edvandro, > > The following scenario is what I did to perform a > settlement process through X++. > > 1. Write a ledgerjournaltable record > > 2. Write a ledgerjournaltrans record which has the reversing total > of the settlements you want to select, or you can wait until after you read > through settlements to get your total and then update this record so the > journal is in balance. > > // definition > > CustVendOpenTransManager manager; > > ; > > // Initialize manager > > manager = CustVendOpenTransManager::construct(ledgerjournaltrans); > > 3. Read through custtransopen and call the following for each one > you want to select. > > // select > > manager.updateTransMarked(custTransOpen, noyes::Yes); > > 4. Post journal > > > > Randy Pedersen > Microsoft Certified Business Management Solutions Specialist - Development > for Microsoft Dynamics AX > > > > > > *From:* Axapta-Knowledge-Village@yahoogroups.com [mailto: > axapta-knowledge-vill...@yahoogroups.com] *On Behalf Of *Edvandro Santos > *Sent:* Thursday, February 18, 2010 4:38 PM > *To:* axapta-knowledge-village > *Subject:* [Axapta-Knowledge-Village] Simulate markTrans on > CustTransOpen_DS > > > > > > Hi all, > > > > I´m need to create a routine in AX that create journal lines with a line of > custtransopen (Functions > Settelments). So, I see that have an method in > CustTransOpen_Ds called markTrans that mark the transaction to be settled. > So, How can I do that? > > > > Regards, > > > -- > Santos, Edvandro > Microsoft Dynamics Development Consultant > fale...@edvandro.com > http://www.edvandro.com > http://www.axfordummies.com > > > > > > -- > Santos, Edvandro > Microsoft Dynamics Development Consultant > fale...@edvandro.com > http://www.edvandro.com > http://www.axfordummies.com > -- Santos, Edvandro Microsoft Dynamics Development Consultant fale...@edvandro.com http://www.edvandro.com http://www.axfordummies.com