2,743
edits
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>
|