AR Debtor v2: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 168:
 
CreateNewDebtor(dbSetting, newDebtor);
}
</syntaxhighlight>
 
==Inactivate Debtor==
<syntaxhighlight lang="csharp">
public void InactivateDebtor(string accNo, AutoCount.Authentication.UserSession userSession)
{
AutoCount.ARAP.Debtor.DebtorDataAccess cmd = AutoCount.ARAP.Debtor.DebtorDataAccess.Create(userSession, userSession.DBSetting);
AutoCount.ARAP.Debtor.DebtorEntity debtor = cmd.GetDebtor(accNo);
debtor.IsActive = false;
cmd.SaveDebtor(debtor, userSession.LoginUserID);
}
</syntaxhighlight>