progress
This commit is contained in:
@ -36,7 +36,7 @@ namespace COA.EnterpriseServices.DataAccess.Helpers
|
||||
return creditorDataAccess.Add(creditorEntity);
|
||||
}
|
||||
|
||||
public bool UpdateCreditor(Creditor creditor)
|
||||
public bool UpdateCreditor(Creditors.Creditor creditor)
|
||||
{
|
||||
var creditorEntity = mapper.Map<Creditor>(creditor);
|
||||
|
||||
@ -52,6 +52,15 @@ namespace COA.EnterpriseServices.DataAccess.Helpers
|
||||
{
|
||||
var creditor = creditorDataAccess.Get(creditorId);
|
||||
|
||||
creditor.ReferenceNumber = string.Empty;
|
||||
|
||||
creditorDataAccess.Update(creditor);
|
||||
}
|
||||
|
||||
public void ClearCreditorReferenceNumber(int creditorId)
|
||||
{
|
||||
var creditor = creditorDataAccess.Get(creditorId);
|
||||
|
||||
creditor.CurrentCreditorProfileId = creditor.OriginalCreditorProfileId;
|
||||
|
||||
creditorDataAccess.Update(creditor);
|
||||
|
Reference in New Issue
Block a user