Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Negative Inventory Posting Adjustments .NET

Status
Not open for further replies.

ofern01

Programmer
May 28, 2007
12
PA
V53A,B
I have Set the Inventory Setup to Allow Negative Levels of Inventory.
When I make an Ajustment in ACCPAC I get a Message About Going Negative, I select Yes and Proceed.
When I doing This Programmatically, I get An Exception and Does Not Post The Adjustment.
I think is becaouse os the question. How Do I get ACCPAC not to Ask when Working with the .Net Objects?
Thanks...
 
Do some error trapping right before the statement that inserts the negative line, then do a Session.Errors.clear.
 
Thanks That Did it.
Just One More Thing, Is there a way to know the reason for the Fail? I see that LastReturnReason But I do not know What is the Description of those values.

I Need to Pass it just for the negative inventory, but not for other reasons

Thanks again ...
 
Actually in this case, session.Errors.Count = 0
I think because is not an error. This May be something similar to the "Over The Credit limit" check in OE. That there has to be a pre-seeting SefFieldbyName("PROCESSCMD").SetValue() or FUNCTION.
I Do Get a Value of 1000 in LastReasonCode, But I don't know if this is for the negative Level or not
Do you Know?
Thanks.....
 
Sorry, is not LastReasonCode, But ICADE1detail1.LastReturnCode
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top